summaryrefslogtreecommitdiffstats
path: root/sq
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2021-01-20 08:31:07 +0100
committerJustus Winter <justus@sequoia-pgp.org>2021-01-20 08:31:07 +0100
commitbb04c1088e1dc07db07d76c00a4deb46f6f0a0db (patch)
tree4a8f6eec6f4107797b22dfec687da1b1a3341ec5 /sq
parent41e3f130a28b2076e58e3e63aaf1fa2856719c81 (diff)
sq: Make the network policy option conditional.
Diffstat (limited to 'sq')
-rw-r--r--sq/src/sq_cli.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/sq/src/sq_cli.rs b/sq/src/sq_cli.rs
index d2c527ef..b77cc0d6 100644
--- a/sq/src/sq_cli.rs
+++ b/sq/src/sq_cli.rs
@@ -7,10 +7,6 @@ pub fn build() -> App<'static, 'static> {
.version(env!("CARGO_PKG_VERSION"))
.about("Sequoia is an implementation of OpenPGP. This is a command-line frontend.")
.setting(AppSettings::SubcommandRequiredElseHelp)
- .arg(Arg::with_name("policy").value_name("NETWORK-POLICY")
- .long("policy")
- .short("p")
- .help("Sets the network policy to use"))
.arg(Arg::with_name("force")
.long("force")
.short("f")
@@ -582,6 +578,10 @@ pub fn build() -> App<'static, 'static> {
} else {
// With networking support.
app
+ .arg(Arg::with_name("policy").value_name("NETWORK-POLICY")
+ .long("policy")
+ .short("p")
+ .help("Sets the network policy to use"))
.subcommand(SubCommand::with_name("keyserver")
.display_order(40)
.about("Interacts with keyservers")