Browse Source

Merge pull request #59 from da2x/patch-1

Print usage() when pattern is invalid
pull/61/head
orignal 5 years ago committed by GitHub
parent
commit
a6663fb8b0
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