Browse Source

Fix the "foregroung" typo

I made the typo once and then copy/pasted it everywhere.
pull/10/head
Rodolphe Breard 5 years ago
parent
commit
f9a71cbde6
  1. 1
      CHANGELOG.md
  2. 10
      acmed/src/main.rs
  3. 6
      man/en/acmed.8
  4. 6
      man/en/tacd.8
  5. 10
      tacd/src/main.rs

1
CHANGELOG.md

@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- A race condition when requesting multiple certificates on the same non-existent account has been 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 ## [0.6.0] - 2019-06-05

10
acmed/src/main.rs

@ -76,10 +76,10 @@ fn main() {
.conflicts_with("log-syslog"), .conflicts_with("log-syslog"),
) )
.arg( .arg(
Arg::with_name("foregroung")
Arg::with_name("foreground")
.short("f") .short("f")
.long("foregroung")
.help("Runs in the foregroung"),
.long("foreground")
.help("Runs in the foreground"),
) )
.arg( .arg(
Arg::with_name("pid-file") Arg::with_name("pid-file")
@ -87,7 +87,7 @@ fn main() {
.help("Specifies the location of the PID file") .help("Specifies the location of the PID file")
.takes_value(true) .takes_value(true)
.value_name("FILE") .value_name("FILE")
.conflicts_with("foregroung"),
.conflicts_with("foreground"),
) )
.arg( .arg(
Arg::with_name("root-cert") Arg::with_name("root-cert")
@ -117,7 +117,7 @@ fn main() {
}; };
init_server( init_server(
matches.is_present("foregroung"),
matches.is_present("foreground"),
matches.value_of("pid-file").unwrap_or(DEFAULT_PID_FILE), matches.value_of("pid-file").unwrap_or(DEFAULT_PID_FILE),
); );

6
man/en/acmed.8

@ -13,7 +13,7 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl c|--config Ar FILE .Op Fl c|--config Ar FILE
.Op Fl f|--foregroung
.Op Fl f|--foreground
.Op Fl h|--help .Op Fl h|--help
.Op Fl -log-stderr .Op Fl -log-stderr
.Op Fl -log-syslog .Op Fl -log-syslog
@ -32,8 +32,8 @@ The options are as follows:
.Bl -tag .Bl -tag
.It Fl c, -config Ar FILE .It Fl c, -config Ar FILE
Specify an alternative configuration 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 .It Fl h, -help
Prints help information Prints help information
.It Fl -log-stderr .It Fl -log-stderr

6
man/en/tacd.8

@ -16,7 +16,7 @@
.Op Fl -acme-ext-file Ar FILE .Op Fl -acme-ext-file Ar FILE
.Op Fl d|--domain Ar STRING .Op Fl d|--domain Ar STRING
.Op Fl -domain-file Ar STRING .Op Fl -domain-file Ar STRING
.Op Fl f|--foregroung
.Op Fl f|--foreground
.Op Fl h|--help .Op Fl h|--help
.Op Fl l|--listen Ar host:port .Op Fl l|--listen Ar host:port
.Op Fl -log-stderr .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. The domain that is being validated.
.It Fl -domain-file Ar STRING .It Fl -domain-file Ar STRING
File from which is read the domain that is being validated. 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 .It Fl h, -help
Prints help information. Prints help information.
.It Fl i, -listen Ar host:port | unix:path .It Fl i, -listen Ar host:port | unix:path

10
tacd/src/main.rs

@ -40,7 +40,7 @@ fn get_acme_value(cnf: &ArgMatches, opt: &str, opt_file: &str) -> Result<String,
fn init(cnf: &ArgMatches) -> Result<(), Error> { fn init(cnf: &ArgMatches) -> Result<(), Error> {
acme_common::init_server( acme_common::init_server(
cnf.is_present("foregroung"),
cnf.is_present("foreground"),
cnf.value_of("pid-file").unwrap_or(DEFAULT_PID_FILE), cnf.value_of("pid-file").unwrap_or(DEFAULT_PID_FILE),
); );
let domain = get_acme_value(cnf, "domain", "domain-file")?; let domain = get_acme_value(cnf, "domain", "domain-file")?;
@ -118,10 +118,10 @@ fn main() {
.conflicts_with("log-syslog"), .conflicts_with("log-syslog"),
) )
.arg( .arg(
Arg::with_name("foregroung")
.long("foregroung")
Arg::with_name("foreground")
.long("foreground")
.short("f") .short("f")
.help("Runs in the foregroung"),
.help("Runs in the foreground"),
) )
.arg( .arg(
Arg::with_name("pid-file") Arg::with_name("pid-file")
@ -129,7 +129,7 @@ fn main() {
.help("Specifies the location of the PID file") .help("Specifies the location of the PID file")
.takes_value(true) .takes_value(true)
.value_name("FILE") .value_name("FILE")
.conflicts_with("foregroung"),
.conflicts_with("foreground"),
) )
.get_matches(); .get_matches();

Loading…
Cancel
Save