lianad add msg if wrong arg
Co-authored-by: Antoine Poinsot <darosior@protonmail.com>
This commit is contained in:
parent
1a59d03858
commit
b824a6433c
@ -19,6 +19,11 @@ fn parse_args(args: Vec<String>) -> Option<PathBuf> {
|
||||
return None;
|
||||
}
|
||||
|
||||
if args[1] != "--conf" {
|
||||
eprintln!("Only a single command line argument is supported: --conf. All other configuration parameters must be specified in the configuration file.");
|
||||
print_help_exit();
|
||||
}
|
||||
|
||||
if args.len() != 3 {
|
||||
print_help_exit();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user