Fix the hard code of max depth

This commit is contained in:
Jedsek
2022-08-22 23:58:26 +08:00
committed by andy.boot
parent 81d52e6e3a
commit f60184ecbb
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ include!("src/cli.rs");
fn main() -> Result<(), Error> {
let outdir = "completions";
let app_name = "dust";
let mut cmd = build_cli();
let max_depth = usize::MAX.to_string();
let mut cmd = build_cli(&max_depth);
generate_to(Bash, &mut cmd, app_name, outdir)?;
generate_to(Zsh, &mut cmd, app_name, outdir)?;