diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-01-23 13:42:14 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-01-23 18:16:02 +0100 |
commit | ba56e50ee77d11c45f569ba8fbc95e6dadb323ef (patch) | |
tree | be3dfe9ab30446477e3076109fe0c903eea01f70 /tools | |
parent | 034b6394a414d7336cc2450eaddd842e2e8c35cb (diff) | |
download | unit-ba56e50ee77d11c45f569ba8fbc95e6dadb323ef.tar.gz unit-ba56e50ee77d11c45f569ba8fbc95e6dadb323ef.tar.bz2 |
Tools: setup-unit: -hh: Add short-cut for the advanced help
I hate having to type so much just for the useful help.
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/setup-unit | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/setup-unit b/tools/setup-unit index bb5b2ba0..e9ad5896 100755 --- a/tools/setup-unit +++ b/tools/setup-unit @@ -37,7 +37,7 @@ help_unit() { cat <<__EOF__ ; SYNOPSIS - $0 [-h] COMMAND [ARGS] + $0 [-h[h]] COMMAND [ARGS] Subcommands ├── repo-config [-hn] [PKG-MANAGER OS-NAME OS-VERSION] @@ -62,7 +62,7 @@ OPTIONS -h, --help Print this help. - --help-more + -hh, --help-more Print help for more (advanced) commands. __EOF__ @@ -72,7 +72,7 @@ help_more_unit() { cat <<__EOF__ ; SYNOPSIS - $0 [-h] COMMAND [ARGS] + $0 [-h[h]] COMMAND [ARGS] Subcommands ├── cmd [-h] @@ -131,7 +131,7 @@ OPTIONS -h, --help Print basic help (some commands are hidden). - --help-more + -hh, --help-more Print the hidden help with more commands. __EOF__ @@ -1637,7 +1637,7 @@ while test $# -ge 1; do help_unit; exit 0; ;; - --help-more) + -hh | --help-more) help_more_unit; exit 0; ;; |