diff options
| author | Robin Gögge <r.goegge@outlook.com> | 2020-11-21 21:21:18 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2020-11-23 11:29:17 +0100 |
| commit | 410cf70afb817488233dce1018d38fe734665d53 (patch) | |
| tree | 1cc8350236ca23eebe181892a59e06256d78c088 /mullvad-cli/src | |
| parent | 7fbb556559912cfcbf3f509af78dcd315116ab69 (diff) | |
| download | mullvadvpn-410cf70afb817488233dce1018d38fe734665d53.tar.xz mullvadvpn-410cf70afb817488233dce1018d38fe734665d53.zip | |
Rename `mullvad relay set relay` to `mullvad relay set hostname`
Closes #2267.
Signed-off-by: Robin Gögge <r.goegge@outlook.com>
Diffstat (limited to 'mullvad-cli/src')
| -rw-r--r-- | mullvad-cli/src/cmds/relay.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mullvad-cli/src/cmds/relay.rs b/mullvad-cli/src/cmds/relay.rs index b9948e5fb4..ab1ea41fe1 100644 --- a/mullvad-cli/src/cmds/relay.rs +++ b/mullvad-cli/src/cmds/relay.rs @@ -117,7 +117,7 @@ impl Command for Relay { command to show available alternatives.") ) .subcommand( - clap::SubCommand::with_name("relay") + clap::SubCommand::with_name("hostname") .about("Set the exact relay to use via its hostname. Shortcut for \ 'location <country> <city> <hostname>'.") .arg( @@ -203,8 +203,8 @@ impl Relay { self.set_custom(custom_matches).await } else if let Some(location_matches) = matches.subcommand_matches("location") { self.set_location(location_matches).await - } else if let Some(relay_matches) = matches.subcommand_matches("relay") { - self.set_relay(relay_matches).await + } else if let Some(relay_matches) = matches.subcommand_matches("hostname") { + self.set_hostname(relay_matches).await } else if let Some(provider_matches) = matches.subcommand_matches("provider") { self.set_provider(provider_matches).await } else if let Some(tunnel_matches) = matches.subcommand_matches("tunnel") { @@ -334,7 +334,7 @@ impl Relay { key } - async fn set_relay(&self, matches: &clap::ArgMatches<'_>) -> Result<()> { + async fn set_hostname(&self, matches: &clap::ArgMatches<'_>) -> Result<()> { let hostname = matches.value_of("hostname").unwrap(); let countries = Self::get_filtered_relays().await?; |
