Add --cache-dir option

This commit is contained in:
sharkdp authored and David Peter committed 2019-02-07 22:19:32 +01:00
1 parent 6523bbf62f
commit 54143d1403
3 files changed
+13 -2

No files matched your search

+6 -1
View File
@@ -374,9 +374,14 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
.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(&["init", "clear", "config-dir"])
.args(&["init", "clear", "config-dir", "cache-dir"])
.required(arg_group_required),
)
.arg(