-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for duplicate stdin usage on read instead of arg parsing (#10)
This change relaxes the check for duplicate usage of `stdin` on arg declarations (error at runtime if any two args use `MaybeStdin` or `FileOrStdin`) and instead only check for duplicated `stdin` usage when these args are accessed. This allows usages of args that may be mutually exclusive (E.g. under different subcommands) or use the `global=true` clap option (as reported in #9) If a tool happens to accept multiple args that can be Stdin, the CLI user will only see an error if they actually try to use `stdin` for values twice.
- Loading branch information
1 parent
fb6d12f
commit 409d461
Showing
5 changed files
with
66 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
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