diff options
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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::Args; 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 = Args::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)?; |