tc filter help should just print usage
Doing tc filter help should end argument processing. This prevents extraneous messages. Reported by Marcela Maslanova
This commit is contained in:
parent
bc7d1bd88d
commit
3a99df7074
|
|
@ -121,6 +121,7 @@ int tc_filter_modify(int cmd, unsigned flags, int argc, char **argv)
|
||||||
return -1;
|
return -1;
|
||||||
} else if (matches(*argv, "help") == 0) {
|
} else if (matches(*argv, "help") == 0) {
|
||||||
usage();
|
usage();
|
||||||
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
strncpy(k, *argv, sizeof(k)-1);
|
strncpy(k, *argv, sizeof(k)-1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue