mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-18 04:00:03 +02:00
src/main.cpp: error out on unsupported flags for search.
This commit is contained in:
parent
f9930ec4fc
commit
d636cf7756
1 changed files with 6 additions and 0 deletions
|
|
@ -166,6 +166,12 @@ int main(int argc, char **argv) {
|
|||
<< " thread support. this option is ignored." << std::endl;
|
||||
#endif /* HAVE_THREADS */
|
||||
}
|
||||
// Error out on any flag we don't support.
|
||||
else if (argv[p][0] == '-') {
|
||||
std::cerr << "Unrecognized flag: " << argv[p] << std::endl;
|
||||
usage(argv[0]);
|
||||
return 0;
|
||||
}
|
||||
// Nothing to parse
|
||||
else {
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue