From 53bc507c553bacf40b44ba9929111e9283091cb6 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sat, 10 Sep 2005 18:19:02 +0000 Subject: [PATCH] Add diagnostics about unknown option. Fix USAGE information. --- rddt/rddt.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rddt/rddt.cpp b/rddt/rddt.cpp index 2916b37..bbd9e59 100644 --- a/rddt/rddt.cpp +++ b/rddt/rddt.cpp @@ -346,7 +346,7 @@ int main(int argc, char** argv) { << endl; if(argc < 2) { - cout << "Syntax: RDDT [address or name]" << endl; + cout << "Syntax: RDDT [options] [address or name]" << endl; return 1; } @@ -382,6 +382,8 @@ int main(int argc, char** argv) { case 'i': atree.indent = atoi(argp + 2); break; + default: + cerr << "Illegal option '" << argp << "', ignored" << endl; } } else