| 1 | cat <<\EOF |
| 2 | usage: some-command [options] <args>... |
| 3 | |
| 4 | some-command does foo and bar! |
| 5 | |
| 6 | -h, --help show the help |
| 7 | --[no-]foo some nifty option --foo |
| 8 | --[no-]bar ... some cool option --bar with an argument |
| 9 | -b, --[no-]baz a short and long option |
| 10 | |
| 11 | An option group Header |
| 12 | -C[...] option C with an optional argument |
| 13 | -d, --[no-]data[=...] short and long option with an optional argument |
| 14 | |
| 15 | Argument hints |
| 16 | -B <arg> short option required argument |
| 17 | --[no-]bar2 <arg> long option required argument |
| 18 | -e, --[no-]fuz <with-space> |
| 19 | short and long option required argument |
| 20 | -s[<some>] short option optional argument |
| 21 | --[no-]long[=<data>] long option optional argument |
| 22 | -g, --[no-]fluf[=<path>] |
| 23 | short and long option optional argument |
| 24 | --[no-]longest <very-long-argument-hint> |
| 25 | a very long argument hint |
| 26 | --[no-]pair <key=value> |
| 27 | with an equals sign in the hint |
| 28 | --[no-]aswitch help te=t contains? fl*g characters!` |
| 29 | --[no-]bswitch <hint> hint has trailing tab character |
| 30 | --[no-]cswitch switch has trailing tab character |
| 31 | --[no-]short-hint <a> with a one symbol hint |
| 32 | |
| 33 | Extras |
| 34 | --[no-]extra1 line above used to cause a segfault but no longer does |
| 35 | |
| 36 | EOF |
| 37 | exit 0 |