Re: Support for variable number of arguments in popt

2011-09-07 Thread Jeff Johnson
On Sep 7, 2011, at 12:41 PM, Jeff Johnson wrote: > > On Sep 7, 2011, at 12:30 PM, Wichmann, Mats D wrote: > >> >> there's some precedent (not a lot) for using a separator other than space >> for this purpose, often a comma since it happens to be neutral to the >> shell. as in: >> >> --optio

Re: Support for variable number of arguments in popt

2011-09-07 Thread Jeff Johnson
On Sep 7, 2011, at 12:30 PM, Wichmann, Mats D wrote: > > > On Wed, Sep 7, 2011 at 9:16 AM, Jeff Johnson wrote: > > On Sep 7, 2011, at 4:44 AM, Christian Schmidt wrote: > > > Hi, > > > > I'm trying to parse a command line that can contain multiple variable > > number of arguments for a parame

Re: Support for variable number of arguments in popt

2011-09-07 Thread Jeff Johnson
On Sep 7, 2011, at 4:44 AM, Christian Schmidt wrote: > Hi, > > I'm trying to parse a command line that can contain multiple variable > number of arguments for a parameter, e.g. > > -r /dev/sda /dev/sdb -m /dev/sdc /dev/sdd -b 16m … > Traditionally, uglix was designed with the model P

Support for variable number of arguments in popt

2011-09-07 Thread Christian Schmidt
Hi, I'm trying to parse a command line that can contain multiple variable number of arguments for a parameter, e.g. -r /dev/sda /dev/sdb -m /dev/sdc /dev/sdd -b 16m ... The reason for the space separated lists is simply shell expansion. Given existing device nodes you could write -r /dev/sd[ab