]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables-translate: add missing argument and option to usage
authormizuta.takeshi@fujitsu.com <mizuta.takeshi@fujitsu.com>
Wed, 22 Sep 2021 14:26:00 +0000 (14:26 +0000)
committerFlorian Westphal <fw@strlen.de>
Sun, 26 Sep 2021 09:32:51 +0000 (11:32 +0200)
In xtables-restore-translate usage, the argument <FILE> for the -f option and
the -V|--version option are missing, so added them.

Signed-off-by: MIZUTA Takeshi <mizuta.takeshi@fujitsu.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/xtables-translate.c

index 49f44b6ffa5a36db45b472d845c17ee2268f109b..2a00a85088e2c9da4d132aa0baaefcb6f239c2e2 100644 (file)
@@ -354,9 +354,10 @@ static void print_usage(const char *name, const char *version)
 {
        fprintf(stderr, "%s %s "
                        "(c) 2014 by Pablo Neira Ayuso <pablo@netfilter.org>\n"
-                       "Usage: %s [-h] [-f]\n"
+                       "Usage: %s [-h] [-f <FILE>] [-V]\n"
                         "      [ --help ]\n"
-                        "      [ --file=<FILE> ]\n", name, version, name);
+                        "      [ --file=<FILE> ]\n"
+                        "      [ --version ]\n", name, version, name);
         exit(1);
 }