diff mbox series

[iptables] xtables-translate: add missing argument and option to usage

Message ID TYAPR01MB4160D345C99412EED8FFF1C38EA29@TYAPR01MB4160.jpnprd01.prod.outlook.com
State Accepted
Delegated to: Pablo Neira
Headers show
Series [iptables] xtables-translate: add missing argument and option to usage | expand

Commit Message

mizuta.takeshi@fujitsu.com Sept. 22, 2021, 2:26 p.m. UTC
In xtables-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>
---
 iptables/xtables-translate.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Florian Westphal Sept. 26, 2021, 9:34 a.m. UTC | #1
mizuta.takeshi@fujitsu.com <mizuta.takeshi@fujitsu.com> wrote:
> In xtables-translate usage, the argument <FILE> for the -f option and
> the -V|--version option are missing, so added them.

Applied, thanks.
diff mbox series

Patch

diff --git a/iptables/xtables-translate.c b/iptables/xtables-translate.c
index 49f44b6f..2a00a850 100644
--- a/iptables/xtables-translate.c
+++ b/iptables/xtables-translate.c
@@ -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);
 }