-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a non-zero exit code for 'gs' without arguments (#279)
Follow up to #278 We present --help when invoked without any arguments, but that's still an invalid invocation, so we should fail with a non-zero exit code.
- Loading branch information
Showing
3 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
kind: Changed | ||
body: 'cli: Run the help command when no subcommands are included' | ||
body: 'cli: Show --help when run without arguments' | ||
time: 2024-07-23T09:13:00.419337+09:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Running 'gs' with no arguments | ||
# exits with a non-zero status code, | ||
# but prints a help message to stderr. | ||
|
||
! gs | ||
stdout 'Usage: gs ' | ||
stderr 'please provide a command' |