Add diagnostics about unknown option. Fix USAGE information.
This commit is contained in:
parent
beecbf19da
commit
53bc507c55
@ -346,7 +346,7 @@ int main(int argc, char** argv) {
|
|||||||
<< endl;
|
<< endl;
|
||||||
|
|
||||||
if(argc < 2) {
|
if(argc < 2) {
|
||||||
cout << "Syntax: RDDT <routefile> [address or name]" << endl;
|
cout << "Syntax: RDDT <routefile> [options] [address or name]" << endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -382,6 +382,8 @@ int main(int argc, char** argv) {
|
|||||||
case 'i':
|
case 'i':
|
||||||
atree.indent = atoi(argp + 2);
|
atree.indent = atoi(argp + 2);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
cerr << "Illegal option '" << argp << "', ignored" << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user