summaryrefslogtreecommitdiffhomepage
path: root/mullvad-cli/src
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2020-10-12 11:20:36 +0200
committerDavid Lönnhager <david.l@mullvad.net>2020-10-12 11:20:36 +0200
commit71075d6bd88a15a40c424c0eee2d901047d45498 (patch)
tree208f524b4bc8e78930f8296c9676b62ad5d3f18e /mullvad-cli/src
parentc35d13fe25e8e9d6c62db765ef1502b5c0d1957d (diff)
parent198f31bae2e751b12c537d6372ae37234bc617a0 (diff)
downloadmullvadvpn-71075d6bd88a15a40c424c0eee2d901047d45498.tar.xz
mullvadvpn-71075d6bd88a15a40c424c0eee2d901047d45498.zip
Merge branch 'update-build-script'
Diffstat (limited to 'mullvad-cli/src')
-rw-r--r--mullvad-cli/src/main.rs5
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")