mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
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.
This commit is contained in:
parent
7f2c81103b
commit
6916a873c2
3 changed files with 18 additions and 10 deletions
3
NEWS
3
NEWS
|
@ -10,6 +10,9 @@ Any uppercase BUG_* names are modernish shell bug IDs.
|
|||
- Functions that set variables in a virtual subshell will no longer affect
|
||||
variables of the same name outside of the virtual subshell's environment.
|
||||
|
||||
- Terse usage messages written by builtin commands now point the user to
|
||||
the --help and --man options for more information.
|
||||
|
||||
2020-06-14:
|
||||
|
||||
- 'read -S' is now able to correctly handle strings with double quotes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue