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>
This commit is contained in:
@@ -37,7 +37,7 @@ help_unit()
|
|||||||
{
|
{
|
||||||
cat <<__EOF__ ;
|
cat <<__EOF__ ;
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
$0 [-h] COMMAND [ARGS]
|
$0 [-h[h]] COMMAND [ARGS]
|
||||||
|
|
||||||
Subcommands
|
Subcommands
|
||||||
├── repo-config [-hn] [PKG-MANAGER OS-NAME OS-VERSION]
|
├── repo-config [-hn] [PKG-MANAGER OS-NAME OS-VERSION]
|
||||||
@@ -62,7 +62,7 @@ OPTIONS
|
|||||||
-h, --help
|
-h, --help
|
||||||
Print this help.
|
Print this help.
|
||||||
|
|
||||||
--help-more
|
-hh, --help-more
|
||||||
Print help for more (advanced) commands.
|
Print help for more (advanced) commands.
|
||||||
|
|
||||||
__EOF__
|
__EOF__
|
||||||
@@ -72,7 +72,7 @@ help_more_unit()
|
|||||||
{
|
{
|
||||||
cat <<__EOF__ ;
|
cat <<__EOF__ ;
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
$0 [-h] COMMAND [ARGS]
|
$0 [-h[h]] COMMAND [ARGS]
|
||||||
|
|
||||||
Subcommands
|
Subcommands
|
||||||
├── cmd [-h]
|
├── cmd [-h]
|
||||||
@@ -131,7 +131,7 @@ OPTIONS
|
|||||||
-h, --help
|
-h, --help
|
||||||
Print basic help (some commands are hidden).
|
Print basic help (some commands are hidden).
|
||||||
|
|
||||||
--help-more
|
-hh, --help-more
|
||||||
Print the hidden help with more commands.
|
Print the hidden help with more commands.
|
||||||
|
|
||||||
__EOF__
|
__EOF__
|
||||||
@@ -1637,7 +1637,7 @@ while test $# -ge 1; do
|
|||||||
help_unit;
|
help_unit;
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
--help-more)
|
-hh | --help-more)
|
||||||
help_more_unit;
|
help_more_unit;
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user