@@ -349,6 +349,18 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
349349 .hidden(true)
350350 .help("Show path to the configuration file."),
351351 )
352+ .arg(
353+ Arg::with_name("config-dir")
354+ .long("config-dir")
355+ .hidden(true)
356+ .help("Show bat's configuration directory."),
357+ )
358+ .arg(
359+ Arg::with_name("cache-dir")
360+ .long("cache-dir")
361+ .hidden(true)
362+ .help("Show bat's cache directory."),
363+ )
352364 .subcommand(
353365 SubCommand::with_name("cache")
354366 .about("Modify the syntax-definition and theme cache")
@@ -368,20 +380,9 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
368380 .short("c")
369381 .help("Remove the cached syntax definitions and themes."),
370382 )
371− .arg(
372− Arg::with_name("config-dir")
373− .long("config-dir")
374− .short("d")
375− .help("Show bat's configuration directory."),
376− )
377− .arg(
378− Arg::with_name("cache-dir")
379− .long("cache-dir")
380− .help("Show bat's cache directory."),
381− )
382383 .group(
383384 ArgGroup::with_name("cache-actions")
384− .args(&["build", "clear", "config-dir", "cache-dir"])
385+ .args(&["build", "clear"])
385386 .required(arg_group_required),
386387 )
387388 .arg(