Follow

3 types of programs:

$ foo -h
invalid option -- 'h'
Try 'foo --help' for more information.

$ foo --help
invalid option -- '-'
usage: foo [-iuegnvlairKnsivrngvV] qux blarg

$ foo --help
unknown option '--help', continuing anyway
deleting your files...
^C^Cdeleting more files...^C

@hexdefined

how long before there's nine levels of open source program difficulty just like the nine levels of hell

@hexdefined
Lol at assuming type 3 will even tell you it didn't parse the argument.

@hexdefined

the fourth kind:

$ foo --help
unknown option '--help'
Try 'foo --help' for more information.

@ben @hexdefined

$ foo --help
file '--help' not found
$ man foo
No manual entry for foo

@ben @hexdefined @flussence

$ foo
Usage: foo <bar>
Type foo --help for more information

$ foo --help
foo [options] <bar>
Available options:
--help: print this help

@ben @flussence
"why's it taking so long?"
"oh"

(this has happened to me with grep -r)

@luciferMysticus @flussence @ben "what do you mean there's no documentation? we put it all in /usr/share/doc!"

@hexdefined And, if seriously, my preferred format is `foo -help`, without short options.

@hexdefined
$ foo --help
invalid option "--help"
usage: foo [options] [file] [device] [baud rate] [moon phase] [core temperature] [target architecture/coordinates]

$ foo --help
> help
Precinct, zone, number or letter.
> ?
Precinct, zone, number or letter.
> ^D^C^C
Precinct, zone, number or letter.
>

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!