lianad add msg if wrong arg

Co-authored-by: Antoine Poinsot <darosior@protonmail.com>
This commit is contained in:
pythcoiner 2023-10-24 20:33:54 +02:00 committed by pythcoiner
parent 1a59d03858
commit b824a6433c

View File

@ -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();
}