daemon: remove 'help' detection in command line arguments

This is superfluous and prevents using config files with "-h" in their
path.
This commit is contained in:
Antoine Poinsot 2023-08-22 16:42:57 +02:00
parent 032bb26997
commit 77e46d5495
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -19,10 +19,7 @@ fn parse_args(args: Vec<String>) -> Option<PathBuf> {
return None;
}
let is_help = args
.iter()
.any(|arg| arg.contains("help") || arg.contains("-h"));
if args.len() != 3 || is_help {
if args.len() != 3 {
print_help_exit();
}