-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(clap): various fixes and improvements
* `--version` now includes the API revision we embody (using crate_version()) * Allow multiple scopes to be specified, instead of just one. Previously this was problemantic due to argument parsing of docopt being greedy. However, this also means we have to specify the `-r` flag for each invocation. See clap-rs/clap#89 . * Adapted to new signature of `Arg::possible_values()` and used the previously orphaned `UploadProtocol` enum. * Deduplicated code a little by adding the new `opt_values()` generator function. Related to #81
- Loading branch information
Showing
4 changed files
with
63 additions
and
44 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