[dev] Re: [dev] Re: [dev] Re: [dev] Usage, -h, --help, help, synopsis, …

From: Anh Hai Trinh <anh.hai.trinh_AT_gmail.com>
Date: Wed, 18 Aug 2010 11:06:32 +0700

On Wed, Aug 18, 2010 at 2:36 AM, Alexander Teinum <ateinum_AT_gmail.com> wrote:
> It would be a nice challenge to write a really small getopt()
> replacement, and a program that generates usage text. Okay, how about…
>
> usage: program -a [-b] [-c] -f file blah blah blah
>
> -a    Required. Must always be set.
> -b    Optional.
> -c    Optional.
> -f file    Required. file must always be a string.
> blah blah blah    I guess it’s up to the program to decide if this is
> optional or required.

"Required options". What an oxymoron.

-- 
@chickamade
Received on Wed Aug 18 2010 - 06:06:32 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 18 2010 - 06:12:02 CEST