Cleanup: Clean previous commit.

Dislike the idea of passing a string into build_cli. By removing
a call to default_value we can side-step the problem.

Downside is we lose the error log if a user provides a bad depth
This commit is contained in:
andy.boot
2022-08-22 17:46:10 +01:00
parent f60184ecbb
commit b9b2aee760
3 changed files with 4 additions and 9 deletions
+1 -2
View File
@@ -6,8 +6,7 @@ include!("src/cli.rs");
fn main() -> Result<(), Error> {
let outdir = "completions";
let app_name = "dust";
let max_depth = usize::MAX.to_string();
let mut cmd = build_cli(&max_depth);
let mut cmd = build_cli();
generate_to(Bash, &mut cmd, app_name, outdir)?;
generate_to(Zsh, &mut cmd, app_name, outdir)?;