Added more helpful message on unrecognised options.
This commit is contained in:
pdw
2002-10-29 08:51:26 +00:00
parent 8f92860b59
commit 18524e9045
3 changed files with 10 additions and 4 deletions

View File

@@ -228,6 +228,10 @@ void options_read(int argc, char **argv) {
}
}
if (optind != argc)
fprintf(stderr, "iftop: warning: ignored arguments following options\n");
if (optind != argc) {
fprintf(stderr, "iftop: found arguments following options\n");
fprintf(stderr, "*** some options have changed names since v0.9 ***\n");
usage(stderr);
exit(1);
}
}