1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-07-02 11:43:40 +02:00

src/main.cpp: error out on unsupported flags for search.

This commit is contained in:
Henrik Hautakoski 2020-02-05 15:52:53 +01:00
parent f9930ec4fc
commit d636cf7756

View file

@ -166,6 +166,12 @@ int main(int argc, char **argv) {
<< " thread support. this option is ignored." << std::endl; << " thread support. this option is ignored." << std::endl;
#endif /* HAVE_THREADS */ #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 // Nothing to parse
else { else {
break; break;