Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1923 from sliquister/broken-arg
Arg module sometimes misbehaves instead of rejecting invalid -keyword=arg inputs
- Loading branch information
Showing
4 changed files
with
40 additions
and
8 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
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
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,45 +1,65 @@ | ||
(1/7) Bad: | ||
(1/10) Bad: | ||
testerror: option '-s' needs an argument. | ||
Arg module testing | ||
-s missing arg | ||
-help Display this list of options | ||
--help Display this list of options | ||
|
||
(2/7) Bad: | ||
(2/10) Bad: | ||
testerror: wrong argument 'true'; option '-set=true' expects no argument. | ||
Arg module testing | ||
-set no argument expected | ||
-help Display this list of options | ||
--help Display this list of options | ||
|
||
(3/7) Help: | ||
(3/10) Help: | ||
Arg module testing | ||
-help Display this list of options | ||
--help Display this list of options | ||
|
||
(4/7) Bad: | ||
(4/10) Bad: | ||
testerror: wrong argument 'not_an_int'; option '-int' expects an integer. | ||
Arg module testing | ||
-int wrong argument type | ||
-help Display this list of options | ||
--help Display this list of options | ||
|
||
(5/7) Bad: | ||
(5/10) Bad: | ||
testerror: unknown option '-an-unknown-option'. | ||
Arg module testing | ||
-help Display this list of options | ||
--help Display this list of options | ||
|
||
(6/7) Bad: | ||
(6/10) Bad: | ||
testerror: User-raised error. | ||
Arg module testing | ||
-help Display this list of options | ||
--help Display this list of options | ||
|
||
(7/7) Bad: | ||
(7/10) Bad: | ||
testerror: User-raised error bis. | ||
Arg module testing | ||
-error user raised error | ||
-help Display this list of options | ||
--help Display this list of options | ||
|
||
(8/10) Bad: | ||
testerror: wrong argument '1'; option '-rest=1' expects no argument. | ||
Arg module testing | ||
-rest help | ||
-help Display this list of options | ||
--help Display this list of options | ||
|
||
(9/10) Bad: | ||
testerror: wrong argument '1'; option '-tuple=1' expects no argument. | ||
Arg module testing | ||
-tuple help | ||
-help Display this list of options | ||
--help Display this list of options | ||
|
||
(10/10) Bad: | ||
testerror: wrong argument '1'; option '-unit=1' expects no argument. | ||
Arg module testing | ||
-help Display this list of options | ||
--help Display this list of options | ||
|