From f9a71cbde6319f5885480176442c603d0dc34ef8 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sun, 13 Oct 2019 10:25:37 +0200 Subject: [PATCH] Fix the "foregroung" typo I made the typo once and then copy/pasted it everywhere. --- CHANGELOG.md | 1 + acmed/src/main.rs | 10 +++++----- man/en/acmed.8 | 6 +++--- man/en/tacd.8 | 6 +++--- tacd/src/main.rs | 10 +++++----- 5 files changed, 17 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f2d362..b06fd0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - A race condition when requesting multiple certificates on the same non-existent account has been fixed. +- The `foregroung` option has been renamed `foreground`. ## [0.6.0] - 2019-06-05 diff --git a/acmed/src/main.rs b/acmed/src/main.rs index fd6a1b0..bf7c4c6 100644 --- a/acmed/src/main.rs +++ b/acmed/src/main.rs @@ -76,10 +76,10 @@ fn main() { .conflicts_with("log-syslog"), ) .arg( - Arg::with_name("foregroung") + Arg::with_name("foreground") .short("f") - .long("foregroung") - .help("Runs in the foregroung"), + .long("foreground") + .help("Runs in the foreground"), ) .arg( Arg::with_name("pid-file") @@ -87,7 +87,7 @@ fn main() { .help("Specifies the location of the PID file") .takes_value(true) .value_name("FILE") - .conflicts_with("foregroung"), + .conflicts_with("foreground"), ) .arg( Arg::with_name("root-cert") @@ -117,7 +117,7 @@ fn main() { }; init_server( - matches.is_present("foregroung"), + matches.is_present("foreground"), matches.value_of("pid-file").unwrap_or(DEFAULT_PID_FILE), ); diff --git a/man/en/acmed.8 b/man/en/acmed.8 index 5ca7a91..5854e2e 100644 --- a/man/en/acmed.8 +++ b/man/en/acmed.8 @@ -13,7 +13,7 @@ .Sh SYNOPSIS .Nm .Op Fl c|--config Ar FILE -.Op Fl f|--foregroung +.Op Fl f|--foreground .Op Fl h|--help .Op Fl -log-stderr .Op Fl -log-syslog @@ -32,8 +32,8 @@ The options are as follows: .Bl -tag .It Fl c, -config Ar FILE Specify an alternative configuration file. -.It Fl f, -foregroung -Runs in the foregroung +.It Fl f, -foreground +Runs in the foreground .It Fl h, -help Prints help information .It Fl -log-stderr diff --git a/man/en/tacd.8 b/man/en/tacd.8 index c2098fa..5d282a5 100644 --- a/man/en/tacd.8 +++ b/man/en/tacd.8 @@ -16,7 +16,7 @@ .Op Fl -acme-ext-file Ar FILE .Op Fl d|--domain Ar STRING .Op Fl -domain-file Ar STRING -.Op Fl f|--foregroung +.Op Fl f|--foreground .Op Fl h|--help .Op Fl l|--listen Ar host:port .Op Fl -log-stderr @@ -53,8 +53,8 @@ File from which is read the acmeIdentifier extension to set in the self-signed c The domain that is being validated. .It Fl -domain-file Ar STRING File from which is read the domain that is being validated. -.It Fl f, -foregroung -Runs in the foregroung. +.It Fl f, -foreground +Runs in the foreground. .It Fl h, -help Prints help information. .It Fl i, -listen Ar host:port | unix:path diff --git a/tacd/src/main.rs b/tacd/src/main.rs index 5a6ad05..4462740 100644 --- a/tacd/src/main.rs +++ b/tacd/src/main.rs @@ -40,7 +40,7 @@ fn get_acme_value(cnf: &ArgMatches, opt: &str, opt_file: &str) -> Result Result<(), Error> { acme_common::init_server( - cnf.is_present("foregroung"), + cnf.is_present("foreground"), cnf.value_of("pid-file").unwrap_or(DEFAULT_PID_FILE), ); let domain = get_acme_value(cnf, "domain", "domain-file")?; @@ -118,10 +118,10 @@ fn main() { .conflicts_with("log-syslog"), ) .arg( - Arg::with_name("foregroung") - .long("foregroung") + Arg::with_name("foreground") + .long("foreground") .short("f") - .help("Runs in the foregroung"), + .help("Runs in the foreground"), ) .arg( Arg::with_name("pid-file") @@ -129,7 +129,7 @@ fn main() { .help("Specifies the location of the PID file") .takes_value(true) .value_name("FILE") - .conflicts_with("foregroung"), + .conflicts_with("foreground"), ) .get_matches();