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

Re: Adding groups to a user



On 09-07-22 22:51:23, Steven W. Orr wrote:

> Right. There's a standard for how command options should work.
> 
> verb options arguments
> 
> That's why we have getopt and that's why I shudder when I see people
> reinventing wheels.

>From `man 3 getopt`:

    "By  default,  getopt()  permutes  the  contents  of argv as it
    scans, so that eventually all the non-options are at the end."

So, the default "standard" is to allow mixed options and arguments.

-- 
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson georgeanelson com>
      '                              <http://www.georgeanelson.com/>


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