mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-01-23 00:40:22 +01:00
Capture bad command line arguments
This commit is contained in:
parent
db8adfcfe0
commit
2723e0c842
|
|
@ -78,6 +78,9 @@ int main(int argc, char** argv)
|
|||
if ((arg == "-v") || (arg == "--version")) {
|
||||
::fprintf(stdout, "MMDVMHost %s\n", VERSION);
|
||||
return 0;
|
||||
} else if (arg.substr(0,1) == "-") {
|
||||
::fprintf(stderr, "Usage: MMDVMHost [-v|--version] [filename]\n");
|
||||
return 1;
|
||||
} else {
|
||||
iniFile = argv[currentArg];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue