Loading arg_parse_functions +1 −4 Original line number Diff line number Diff line Loading @@ -225,14 +225,11 @@ parse_args () fi case "$1" in --help|-h) echo "$command: $summary" printf "$BIN $command" summarise_args | wrap " " return 1 ;; --summary) echo "$summary" return 1 ;; --) # everything subsequent is positional options opts_only=yes ;; Loading git-hooks +2 −4 Original line number Diff line number Diff line Loading @@ -42,13 +42,11 @@ full_usage () { usage echo "Sub-commands:" echo "-------------" for command in "${commands[@]}"; do echo "-------------" echo echo -n "$command: " eval cmd_$command $command --summary || true eval cmd_$command $command --help || true echo "-------------" echo free_args done } Loading Loading
arg_parse_functions +1 −4 Original line number Diff line number Diff line Loading @@ -225,14 +225,11 @@ parse_args () fi case "$1" in --help|-h) echo "$command: $summary" printf "$BIN $command" summarise_args | wrap " " return 1 ;; --summary) echo "$summary" return 1 ;; --) # everything subsequent is positional options opts_only=yes ;; Loading
git-hooks +2 −4 Original line number Diff line number Diff line Loading @@ -42,13 +42,11 @@ full_usage () { usage echo "Sub-commands:" echo "-------------" for command in "${commands[@]}"; do echo "-------------" echo echo -n "$command: " eval cmd_$command $command --summary || true eval cmd_$command $command --help || true echo "-------------" echo free_args done } Loading