Merge #744: lianad add msg if wrong arg
b824a6433c353e0c1d8c16a3db4bba5097874828 lianad add msg if wrong arg (pythcoiner) Pull request description: address #708 not sure about wording ACKs for top commit: darosior: utACK b824a6433c353e0c1d8c16a3db4bba5097874828 Tree-SHA512: 3b7c6675cb914a3c404fa02b07f0cf0ea529f1df0ae7ffce13bfa45e660e889d5ec85b3065d2b0ddc2561f2b23eeb8d410ce4edc15aff4005194b31bb8606bc5
This commit is contained in:
commit
e4c7a66790
@ -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