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

@@ -1,7 +1,7 @@
Change log for iftop
$Id$
0.10
0.10 29/10/02
User selectable sort criteria
On-the-fly filter code changes
@@ -9,6 +9,8 @@ Shell escape
Alternative resolver back-ends
Improved totals display
Added regexp based screen filtering
Fixed pause functionality
Change option names to be more like tcpdump
0.9 22/10/02

View File

@@ -5,7 +5,7 @@
# $Id$
#
VERSION = 0.10pre4
VERSION = 0.10
# C compiler to use.
#CC = gcc

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);
}
}