mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Added json output function
This commit is contained in:
committed by
andy.boot
parent
a3dcab9454
commit
184ea1f956
+8
-1
@@ -238,4 +238,11 @@ pub fn build_cli() -> Command {
|
||||
.value_parser(value_parser!(String))
|
||||
.num_args(1..)
|
||||
)
|
||||
}
|
||||
.arg(
|
||||
Arg::new("output_json")
|
||||
.short('j')
|
||||
.long("output-json")
|
||||
.action(clap::ArgAction::SetTrue)
|
||||
.help("Output the directory tree as json to the current directory"),
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user