forked from clap-rs/clap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes clap-rs#1345
- Loading branch information
Showing
8 changed files
with
92 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
mod arg_matches; | ||
mod matched_arg; | ||
mod value_source; | ||
|
||
pub(crate) use self::{ | ||
arg_matches::SubCommand, | ||
matched_arg::{MatchedArg, ValueType}, | ||
}; | ||
pub use arg_matches::{ArgMatches, Indices, OsValues, Values}; | ||
pub use value_source::ValueSource; | ||
|
||
pub use self::arg_matches::{ArgMatches, Indices, OsValues, Values}; | ||
pub(crate) use arg_matches::SubCommand; | ||
pub(crate) use matched_arg::MatchedArg; |
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,12 @@ | ||
/// Origin of the argument's value | ||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] | ||
pub enum ValueSource { | ||
/// Origin is unknown | ||
Unknown, | ||
/// Value came [`Arg::default_value`][crate::Arg::default_value] | ||
DefaultValue, | ||
/// Value came [`Arg::env`][crate::Arg::env] | ||
EnvVariable, | ||
/// Value was passed in on the command-line | ||
CommandLine, | ||
} |
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