Browse Source

Print usage() when pattern is invalid

pull/59/head
Daniel Aleksandersen 6 years ago committed by GitHub
parent
commit
11de94761a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      vanitygen.cpp

3
vanitygen.cpp

@ -287,7 +287,8 @@ int main (int argc, char * argv[]) @@ -287,7 +287,8 @@ int main (int argc, char * argv[])
//
if(!options.reg && !check_prefix( argv[1] ))
{
std::cout << "Not correct prefix(just string)" << std::endl;
std::cout << "Invalid pattern." << std::endl;
usage();
return 1;
}else{
options.regex=std::regex(argv[1]);

Loading…
Cancel
Save