diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-02-10 11:48:03 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-02-10 11:48:03 +0100 |
| commit | 06c8a5b00f4ac7dd6ff29947c25e5ffe921d9d5c (patch) | |
| tree | 5dadafc7de130e9f4f98f823fae92032d44ac8b6 /talpid_cli | |
| parent | bca802a72410894d3d1495d2d86b547e4f316b92 (diff) | |
| download | mullvadvpn-06c8a5b00f4ac7dd6ff29947c25e5ffe921d9d5c.tar.xz mullvadvpn-06c8a5b00f4ac7dd6ff29947c25e5ffe921d9d5c.zip | |
Use crate metadata as clap cli parameters
Diffstat (limited to 'talpid_cli')
| -rw-r--r-- | talpid_cli/src/cli.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/talpid_cli/src/cli.rs b/talpid_cli/src/cli.rs index c439a923ec..d6d5899846 100644 --- a/talpid_cli/src/cli.rs +++ b/talpid_cli/src/cli.rs @@ -3,9 +3,6 @@ use std::path::PathBuf; use talpid_core::net::RemoteAddr; -static APP_AUTHOR: &'static str = "Mullvad"; -static APP_ABOUT: &'static str = "Run Talpid easily from the command line."; - pub struct Args { pub binary: String, pub config: PathBuf, @@ -32,8 +29,8 @@ fn get_matches() -> ArgMatches<'static> { fn create_app() -> App<'static, 'static> { App::new(crate_name!()) .version(crate_version!()) - .author(APP_AUTHOR) - .about(APP_ABOUT) + .author(crate_authors!()) + .about(crate_description!()) .arg(Arg::with_name("openvpn") .long("openvpn") .help("Specify what OpenVPN binary to run") |
