summaryrefslogtreecommitdiffstats
path: root/build.rs
diff options
context:
space:
mode:
authorClementTsang <34804052+ClementTsang@users.noreply.github.com>2024-05-11 20:03:31 -0400
committerClementTsang <34804052+ClementTsang@users.noreply.github.com>2024-05-15 02:41:35 -0400
commit90c6ee07d83a8a02866c34e54fd7cba002c1195b (patch)
treef8b923c0334d4601496a3cc3c1074b58f6698073 /build.rs
parentcce835b752bf331e6a0b0cc53d111dded2e58970 (diff)
start moving args
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.rs b/build.rs
index 5ebf6155..dc894181 100644
--- a/build.rs
+++ b/build.rs
@@ -7,12 +7,12 @@ use std::{
path::{Path, PathBuf},
};
-use clap::Command;
+use clap::{Command, CommandFactory};
use clap_complete::{generate_to, shells::Shell, Generator};
use clap_complete_fig::Fig;
use clap_complete_nushell::Nushell;
-use crate::args::build_app;
+use crate::args::BottomArgs;
fn create_dir(dir: &Path) -> io::Result<()> {
let res = fs::create_dir_all(dir);
@@ -48,7 +48,7 @@ fn btm_generate() -> io::Result<()> {
create_dir(&manpage_out_dir)?;
// Generate completions
- let mut app = build_app();
+ let mut app = BottomArgs::command();
generate_completions(Shell::Bash, &mut app, &completion_out_dir)?;
generate_completions(Shell::Zsh, &mut app, &completion_out_dir)?;
generate_completions(Shell::Fish, &mut app, &completion_out_dir)?;