diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 2022f278..21a6cf80 100644 --- a/src/config.rs +++ b/src/config.rs @@ -31,6 +31,7 @@ pub(crate) struct Config { pub(crate) list_heading: String, pub(crate) list_prefix: String, pub(crate) load_dotenv: bool, + pub(crate) no_aliases: bool, pub(crate) no_dependencies: bool, pub(crate) search_config: SearchConfig, pub(crate) shell: Option<String>, @@ -103,6 +104,7 @@ mod arg { pub(crate) const JUSTFILE: &str = "JUSTFILE"; pub(crate) const LIST_HEADING: &str = "LIST-HEADING"; pub(crate) const LIST_PREFIX: &str = "LIST-PREFIX"; + pub(crate) const NO_ALIASES: &str = "NO-ALIASES"; pub(crate) const NO_DEPS: &str = "NO-DEPS"; pub(crate) const NO_DOTENV: &str = "NO-DOTENV"; pub(crate) const NO_HIGHLIGHT: &str = "NO-HIGHLIGHT"; @@ -215,6 +217,11 @@ impl Config { .value_name("TEXT") .takes_value(true), ) + .arg( + Arg::with_name(arg::NO_ALIASES) + .long("no-aliases") + .help("Don't show aliases in list") + ) .arg ( Arg::with_name(arg::NO_DEPS) .long("no-deps") @@ -659,6 +666,7 @@ impl Config { .unwrap_or(" ") .to_owned(), load_dotenv: !matches.is_present(arg::NO_DOTENV), + no_aliases: matches.is_present(arg::NO_ALIASES), no_dependencies: matches.is_present(arg::NO_DEPS), search_config, shell: matches.value_of(arg::SHELL).map(str::to_owned), |