Accept advertised logging flags in CLI by #848

Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
Alexey
2026-06-23 23:19:48 +03:00
parent 840713a359
commit e994ddea00
+6
View File
@@ -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);