diff options
Diffstat (limited to 'mullvad-cli/src')
| -rw-r--r-- | mullvad-cli/src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mullvad-cli/src/main.rs b/mullvad-cli/src/main.rs index 17019c0ab2..7f93e17222 100644 --- a/mullvad-cli/src/main.rs +++ b/mullvad-cli/src/main.rs @@ -57,7 +57,6 @@ async fn run() -> Result<()> { let commands = cmds::get_commands(); let app = build_cli(&commands); - #[cfg(feature = "shell-completions")] let app = app.subcommand( clap::SubCommand::with_name("shell-completions") .about("Generates completion scripts for your shell") @@ -71,12 +70,12 @@ async fn run() -> Result<()> { clap::Arg::with_name("DIR") .default_value("./") .help("Output directory where the shell completions are written"), - ), + ) + .setting(clap::AppSettings::Hidden), ); let app_matches = app.get_matches(); match app_matches.subcommand() { - #[cfg(feature = "shell-completions")] ("shell-completions", Some(sub_matches)) => { let shell = sub_matches .value_of("SHELL") |
