mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-02-08 22:13:49 +01:00
Print usage() when pattern is invalid
This commit is contained in:
parent
2a1c163779
commit
11de94761a
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue