diff options
author | Ruediger Meier | 2017-06-19 00:02:44 +0200 |
---|---|---|
committer | Ruediger Meier | 2017-06-26 14:38:24 +0200 |
commit | 6d7bee26bc4f5586b073f9b539453a7499403ea7 (patch) | |
tree | 1a620a48334963f9a25cc021b28d252cb10e71eb /tests/expected/getopt/options-invalid_getopt_option | |
parent | tools: add checkusage.sh (diff) | |
download | kernel-qcow2-util-linux-6d7bee26bc4f5586b073f9b539453a7499403ea7.tar.gz kernel-qcow2-util-linux-6d7bee26bc4f5586b073f9b539453a7499403ea7.tar.xz kernel-qcow2-util-linux-6d7bee26bc4f5586b073f9b539453a7499403ea7.zip |
flock, getopt: write --help to stdout and return 0
... and use errtryhelp() instead of usage().
Note in past "getopt --help" returned 2. But it is otherwise
documented and was just a mistake IMO. See the unreachable exit(0)
which was removed here: d1d03b54
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/expected/getopt/options-invalid_getopt_option')
-rw-r--r-- | tests/expected/getopt/options-invalid_getopt_option | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/expected/getopt/options-invalid_getopt_option b/tests/expected/getopt/options-invalid_getopt_option index 531cc9828..b3577e027 100644 --- a/tests/expected/getopt/options-invalid_getopt_option +++ b/tests/expected/getopt/options-invalid_getopt_option @@ -1,3 +1,3 @@ getopt: invalid option -- 'b' -Try `getopt --help' for more information. +Try 'getopt --help' for more information. exit value: 2 |