mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-01-22 13:27:17 +01:00
Merge pull request #59 from da2x/patch-1
Print usage() when pattern is invalid
This commit is contained in:
commit
a6663fb8b0
|
@ -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…
Reference in a new issue