All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH iptables] xtables-translate: add missing argument and option to usage
@ 2021-09-22 14:26 mizuta.takeshi
  2021-09-26  9:34 ` Florian Westphal
  0 siblings, 1 reply; 2+ messages in thread
From: mizuta.takeshi @ 2021-09-22 14:26 UTC (permalink / raw)
  To: 'netfilter-devel@vger.kernel.org'

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(-)

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH iptables] xtables-translate: add missing argument and option to usage
  2021-09-22 14:26 [PATCH iptables] xtables-translate: add missing argument and option to usage mizuta.takeshi
@ 2021-09-26  9:34 ` Florian Westphal
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Westphal @ 2021-09-26  9:34 UTC (permalink / raw)
  To: mizuta.takeshi@fujitsu.com; +Cc: 'netfilter-devel@vger.kernel.org'

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-26  9:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-22 14:26 [PATCH iptables] xtables-translate: add missing argument and option to usage mizuta.takeshi
2021-09-26  9:34 ` Florian Westphal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.