Browse Source

Fix an invalid reference in the command line arguments

pull/62/head
Rodolphe Bréard 3 years ago
parent
commit
45f4aeb239
  1. 6
      CHANGELOG.md
  2. 4
      acmed/src/main.rs
  3. 2
      tacd/src/main.rs

6
CHANGELOG.md

@ -12,6 +12,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- An invalid reference in the command line arguments has been fixed.
## [0.19.0] - 2022-04-17 ## [0.19.0] - 2022-04-17
### Added ### Added

4
acmed/src/main.rs

@ -90,7 +90,7 @@ fn main() {
Arg::new("to-stderr") Arg::new("to-stderr")
.long("log-stderr") .long("log-stderr")
.help("Prints log messages to the standard error output") .help("Prints log messages to the standard error output")
.conflicts_with("log-syslog"),
.conflicts_with("to-syslog"),
) )
.arg( .arg(
Arg::new("foreground") Arg::new("foreground")
@ -118,7 +118,7 @@ fn main() {
match set_log_system( match set_log_system(
matches.value_of("log-level"), matches.value_of("log-level"),
matches.is_present("log-syslog"),
matches.is_present("to-syslog"),
matches.is_present("to-stderr"), matches.is_present("to-stderr"),
) { ) {
Ok(_) => {} Ok(_) => {}

2
tacd/src/main.rs

@ -182,7 +182,7 @@ fn main() {
match set_log_system( match set_log_system(
matches.value_of("log-level"), matches.value_of("log-level"),
matches.is_present("log-syslog"),
matches.is_present("to-syslog"),
matches.is_present("to-stderr"), matches.is_present("to-stderr"),
) { ) {
Ok(_) => {} Ok(_) => {}

Loading…
Cancel
Save