-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Milestone
Description
Try running git
, and you will see its usage. You will also receive a non-zero return code, indicating failure. This can be vital in case arguments got truncated.
Current behavior of showing usage instructions (help_text
) is great!
But it should also error out with a code 1
.
Example:
➜ git
usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
(snip)
'git help -a' and 'git help -g' list available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept.
➜ echo $?
1
Reference: learningequality/kolibri#5937
lihu-zhong, aaronborden-rivianvw and earshinov
Metadata
Metadata
Assignees
Labels
No labels