From 27579fe10473c475f3e4dcf66c862f3a69995ea7 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Tue, 23 Aug 2016 10:14:47 -0400 Subject: iptables-restore: add missing arguments to usage message iptables-restore was missing -n, -T and -M from the usage message, added them to match the man page. Cleaned-up other *restore files as well. Signed-off-by: Brian Haley Signed-off-by: Pablo Neira Ayuso --- iptables/iptables-restore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iptables/iptables-restore.c') diff --git a/iptables/iptables-restore.c b/iptables/iptables-restore.c index 638b1714..2f1522db 100644 --- a/iptables/iptables-restore.c +++ b/iptables/iptables-restore.c @@ -42,14 +42,14 @@ static void print_usage(const char *name, const char *version) __attribute__((no static void print_usage(const char *name, const char *version) { - fprintf(stderr, "Usage: %s [-c] [-v] [-t] [-h]\n" + fprintf(stderr, "Usage: %s [-c] [-v] [-t] [-h] [-n] [-T table] [-M command]\n" " [ --counters ]\n" " [ --verbose ]\n" " [ --test ]\n" " [ --help ]\n" " [ --noflush ]\n" " [ --table= ]\n" - " [ --modprobe=]\n", name); + " [ --modprobe= ]\n", name); exit(1); } -- cgit v1.2.3