cdesktopenv/src/lib
Martijn Dekker 6916a873c2 optget: display --help and --man in terse usage messages
The fact that every ksh builtin command self-documents with the
options --help and --man (and others, see 'getopts --man'; but
these are the essential ones) is poorly known; the information is
buried somewhere deep in the sh.1 manual page, and is incomplete at
that. None of the terse usage messages displayed on error point the
user to these options. So let's fix that.

src/lib/libast/misc/optget.c:
- Change generic 'options' placeholder, used in all terse usage
  messages, to 'options | --help | --man'.

src/cmd/ksh93/sh.1:
- Edit documentation of --man/-?, adding documentation on --help
  which was completely undocumented. Refer to 'getopts --man' for
  more advanced info.
- Separate these from the (important) documentation on special
  builtins using a paragraph break.
2020-06-15 16:56:11 +02:00
..
libast optget: display --help and --man in terse usage messages 2020-06-15 16:56:11 +02:00
libcmd Fixes for implicit declaration warnings 2020-06-14 09:55:08 -04:00
libcoshell Fix 80 typos in comments 2020-06-12 01:45:12 +02:00
libdll Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
libsum Fix 80 typos in comments 2020-06-12 01:45:12 +02:00
Makefile Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
Mamfile Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00