-
Committer:
Benno Schulenberg
-
Author(s):
Mateusz Kazimierczuk
-
Date:
2023-07-31 05:40:07 UTC
-
Revision ID:
git-v1:e65b0ba6542b03a76fa6fecabdea56c04c2792b5
options: add -? as a synonym of -h (--help)
The short option '-?' was removed nine years ago in commit 43019189,
then restored six years later in 5bd92d4c, and then removed again two
months later in 743100fe due to getopt() returning '?' for options
that aren't recognized, preventing the use of '-?' as a valid option.
However, getopt() provides a way to check for unrecognized options
via the 'optopt' variable, which gets set only for invalid options.
Signed-off-by: Mateusz Kazimierczuk <mataha+savannah@protonmail.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>