Browse Source

Add missing commas

pull/39/head
Rodolphe Breard 4 years ago
parent
commit
3ee3419676
  1. 20
      tacd/src/main.rs

20
tacd/src/main.rs

@ -79,7 +79,7 @@ fn main() {
.help("Host and port to listen on") .help("Host and port to listen on")
.takes_value(true) .takes_value(true)
.value_name("host:port|unix:path") .value_name("host:port|unix:path")
.default_value(&DEFAULT_LISTEN_ADDR)
.default_value(&DEFAULT_LISTEN_ADDR),
) )
.arg( .arg(
Arg::with_name("domain") Arg::with_name("domain")
@ -88,7 +88,7 @@ fn main() {
.help("The domain that is being validated") .help("The domain that is being validated")
.takes_value(true) .takes_value(true)
.value_name("STRING") .value_name("STRING")
.conflicts_with("domain-file")
.conflicts_with("domain-file"),
) )
.arg( .arg(
Arg::with_name("domain-file") Arg::with_name("domain-file")
@ -96,7 +96,7 @@ fn main() {
.help("File from which is read the domain that is being validated") .help("File from which is read the domain that is being validated")
.takes_value(true) .takes_value(true)
.value_name("FILE") .value_name("FILE")
.conflicts_with("domain")
.conflicts_with("domain"),
) )
.arg( .arg(
Arg::with_name("acme-ext") Arg::with_name("acme-ext")
@ -105,7 +105,7 @@ fn main() {
.help("The acmeIdentifier extension to set in the self-signed certificate") .help("The acmeIdentifier extension to set in the self-signed certificate")
.takes_value(true) .takes_value(true)
.value_name("STRING") .value_name("STRING")
.conflicts_with("acme-ext-file")
.conflicts_with("acme-ext-file"),
) )
.arg( .arg(
Arg::with_name("acme-ext-file") Arg::with_name("acme-ext-file")
@ -113,7 +113,7 @@ fn main() {
.help("File from which is read the acmeIdentifier extension to set in the self-signed certificate") .help("File from which is read the acmeIdentifier extension to set in the self-signed certificate")
.takes_value(true) .takes_value(true)
.value_name("FILE") .value_name("FILE")
.conflicts_with("acme-ext")
.conflicts_with("acme-ext"),
) )
.arg( .arg(
Arg::with_name("crt-signature-alg") Arg::with_name("crt-signature-alg")
@ -122,7 +122,7 @@ fn main() {
.takes_value(true) .takes_value(true)
.value_name("STRING") .value_name("STRING")
.possible_values(&KeyType::list_possible_values()) .possible_values(&KeyType::list_possible_values())
.default_value(&default_crt_key_type)
.default_value(&default_crt_key_type),
) )
.arg( .arg(
Arg::with_name("crt-digest") Arg::with_name("crt-digest")
@ -131,7 +131,7 @@ fn main() {
.takes_value(true) .takes_value(true)
.value_name("STRING") .value_name("STRING")
.possible_values(&HashFunction::list_possible_values()) .possible_values(&HashFunction::list_possible_values())
.default_value(&default_crt_digest)
.default_value(&default_crt_digest),
) )
.arg( .arg(
Arg::with_name("log-level") Arg::with_name("log-level")
@ -140,7 +140,7 @@ fn main() {
.takes_value(true) .takes_value(true)
.value_name("LEVEL") .value_name("LEVEL")
.possible_values(&["error", "warn", "info", "debug", "trace"]) .possible_values(&["error", "warn", "info", "debug", "trace"])
.default_value(&default_log_level)
.default_value(&default_log_level),
) )
.arg( .arg(
Arg::with_name("to-syslog") Arg::with_name("to-syslog")
@ -158,7 +158,7 @@ fn main() {
Arg::with_name("foreground") Arg::with_name("foreground")
.long("foreground") .long("foreground")
.short("f") .short("f")
.help("Runs in the foreground")
.help("Runs in the foreground"),
) )
.arg( .arg(
Arg::with_name("pid-file") Arg::with_name("pid-file")
@ -166,7 +166,7 @@ fn main() {
.help("Path to the PID file") .help("Path to the PID file")
.takes_value(true) .takes_value(true)
.value_name("FILE") .value_name("FILE")
.default_value(&DEFAULT_PID_FILE)
.default_value(&DEFAULT_PID_FILE),
) )
.get_matches(); .get_matches();

Loading…
Cancel
Save