[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Parsing options in the form "-C8"

From: irenezerafa
Subject: Parsing options in the form "-C8"
Date: Tue, 16 Nov 2021 19:43:13 +0000

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Tuesday, November 16th, 2021 at 7:34 PM, Chet Ramey <> 

> On 11/16/21 2:28 PM, irenezerafa via wrote:
> > I want to parse options in the following way "-C8", with the option being 
> > -C and the value being `8`. What can
> > I do to implement the functionality?

> Use `getopts'.

I do not want to go through the getopts or getopt routes.  Primarily because 
they are too simplistic
for my tasks.  I am allowing both short and long options in my code, as well as 
optional values for
options, multiple values per option.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]