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:
parent
032bb26997
commit
77e46d5495
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user