-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As outlined in this bug docopt/docopt.rs#226 Docopt is rather specific about flags versus positional arguments. In our case we had positional arguments that we where using as flags. This created some very confusing behavior where you you could reorder the flags and get a arcane looking config error because 'linux' (the platform arg) was passed as the config arg. If you look carefully at the example USAGE in the Docopt README https://github.com/docopt/docopt you see that all flags not only require the Args strut but also the use of the = sign. This patch corrects these problems and allows flags to work as expected
- Loading branch information
Showing
4 changed files
with
35 additions
and
25 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