mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-02-02 11:04:00 +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] ))
|
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;
|
return 1;
|
||||||
}else{
|
}else{
|
||||||
options.regex=std::regex(argv[1]);
|
options.regex=std::regex(argv[1]);
|
||||||
|
|
Loading…
Reference in a new issue