diff --git a/cli/src/cli.rs b/cli/src/cli.rs index 643782e418b161..b5d9f4e487d174 100644 --- a/cli/src/cli.rs +++ b/cli/src/cli.rs @@ -2721,4 +2721,25 @@ mod tests { } ); } + + #[test] + fn test_cli_completions() { + let mut clap_app = get_clap_app("test", "desc", "version"); + + let shells = [ + Shell::Bash, + Shell::Fish, + Shell::Zsh, + Shell::PowerShell, + Shell::Elvish, + ]; + + for shell in shells { + let mut buf: Vec = vec![]; + + clap_app.gen_completions_to("solana", shell, &mut buf); + + assert!(!buf.is_empty()); + } + } } diff --git a/cli/src/program_v4.rs b/cli/src/program_v4.rs index 917bcec52771a1..23f3a7b75cfeee 100644 --- a/cli/src/program_v4.rs +++ b/cli/src/program_v4.rs @@ -278,7 +278,6 @@ impl ProgramV4SubCommands for App<'_, '_> { Arg::with_name("all") .long("all") .conflicts_with("account") - .conflicts_with("buffer_authority") .help("Show accounts for all authorities"), ) .arg(pubkey!(