mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-01-22 21:37:18 +01:00
grammar nazi
This commit is contained in:
parent
3f64d30a79
commit
c275332df0
|
@ -217,14 +217,14 @@ Orignal is sensei of crypto ;)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void usaging(void){
|
void usage(void){
|
||||||
const constexpr char * help="vain pattern [options]\n"
|
const constexpr char * help="vain pattern [options]\n"
|
||||||
"-h --help help menu\n"
|
"-h --help help menu\n"
|
||||||
"-r --reg regexp instead just text pattern\n"
|
"-r --reg regexp instead just text pattern\n"
|
||||||
"--threads -t (default count of system)\n"
|
"--threads -t (default count of system)\n"
|
||||||
"--signature -s (signature type)\n"
|
"--signature -s (signature type)\n"
|
||||||
"-o --output output file(default private.dat)\n"
|
"-o --output output file(default private.dat)\n"
|
||||||
"--usage usaging\n"
|
"--usage usage\n"
|
||||||
//"--prefix -p\n"
|
//"--prefix -p\n"
|
||||||
"";
|
"";
|
||||||
puts(help);
|
puts(help);
|
||||||
|
@ -248,11 +248,11 @@ void parsing(int argc, char ** args){
|
||||||
switch(c){
|
switch(c){
|
||||||
case 0:
|
case 0:
|
||||||
if ( std::string(long_options[option_index].name) == std::string("usage") ){
|
if ( std::string(long_options[option_index].name) == std::string("usage") ){
|
||||||
usaging();
|
usage();
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
case 'h':
|
case 'h':
|
||||||
usaging();
|
usage();
|
||||||
exit(0);
|
exit(0);
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
|
@ -285,7 +285,7 @@ int main (int argc, char * argv[])
|
||||||
|
|
||||||
if ( argc < 2 )
|
if ( argc < 2 )
|
||||||
{
|
{
|
||||||
usaging();
|
usage();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
parsing( argc > 2 ? argc-1 : argc, argc > 2 ? argv+1 : argv);
|
parsing( argc > 2 ? argc-1 : argc, argc > 2 ? argv+1 : argv);
|
||||||
|
|
Loading…
Reference in a new issue