diff options
author | sharkdp <davidpeter@web.de> | 2019-02-07 22:37:12 +0100 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2019-02-07 23:27:53 +0100 |
commit | e09499b3df6369e1a1f6e42f95ad4009fa76c00e (patch) | |
tree | 2da125ac00642959d5bd0c3893c80cab5748b92e /src/clap_app.rs | |
parent | cff01d81fa21e7ae469b9b4b2ea21e4578870732 (diff) |
Move config-dir and cache-dir from 'bat cache' to 'bat'v0.10.0
Diffstat (limited to 'src/clap_app.rs')
-rw-r--r-- | src/clap_app.rs | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/clap_app.rs b/src/clap_app.rs index ba62747d..1c78673a 100644 --- a/src/clap_app.rs +++ b/src/clap_app.rs @@ -349,6 +349,18 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> { .hidden(true) .help("Show path to the configuration file."), ) + .arg( + Arg::with_name("config-dir") + .long("config-dir") + .hidden(true) + .help("Show bat's configuration directory."), + ) + .arg( + Arg::with_name("cache-dir") + .long("cache-dir") + .hidden(true) + .help("Show bat's cache directory."), + ) .subcommand( SubCommand::with_name("cache") .about("Modify the syntax-definition and theme cache") @@ -368,20 +380,9 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> { .short("c") .help("Remove the cached syntax definitions and themes."), ) - .arg( - Arg::with_name("config-dir") - .long("config-dir") - .short("d") - .help("Show bat's configuration directory."), - ) - .arg( - Arg::with_name("cache-dir") - .long("cache-dir") - .help("Show bat's cache directory."), - ) .group( ArgGroup::with_name("cache-actions") - .args(&["build", "clear", "config-dir", "cache-dir"]) + .args(&["build", "clear"]) .required(arg_group_required), ) .arg( |