mirror of
https://github.com/telemt/telemt.git
synced 2026-06-24 11:51:10 +03:00
Accept advertised logging flags in CLI by #848
Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
@@ -180,6 +180,12 @@ pub(crate) fn parse_cli() -> CliArgs {
|
||||
s if s.starts_with("--log-level=") => {
|
||||
log_level = Some(s.trim_start_matches("--log-level=").to_string());
|
||||
}
|
||||
"--log-file" | "--log-file-daily" => {
|
||||
i += 1;
|
||||
}
|
||||
s if s.starts_with("--log-file=") || s.starts_with("--log-file-daily=") => {}
|
||||
#[cfg(unix)]
|
||||
"--syslog" => {}
|
||||
"--help" | "-h" => {
|
||||
print_help();
|
||||
std::process::exit(0);
|
||||
|
||||
Reference in New Issue
Block a user