Skip to contentSkip to conversation

nft: Modified punctuation used in nft's show_help

PATCH Applied Piyush Pangtey 2 participants 2 messages Mar 9, 2016 netfilter

lore
Share & tools
lore
#0 lore raw

Replaced '/' between shortopt and longopt with ',' , as used by other utilities.

---
 src/main.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
src/main.c +7 -7
index 7bbcfc4..d643970 100644
@@ -107,19 +107,19 @@ static void show_help(const char *name)
 "Usage: %s [ options ] [ cmds... ]\n"
 "\n"
 "Options:\n"
-"  -h/--help			Show this help\n"
-"  -v/--version			Show version information\n"
+"  -h, --help			Show this help\n"
+"  -v, --version			Show version information\n"
 "\n"
-"  -f/--file <filename>		Read input from <filename>\n"
-"  -i/--interactive		Read input from interactive CLI\n"
+"  -f, --file <filename>		Read input from <filename>\n"
+"  -i, --interactive		Read input from interactive CLI\n"
 "\n"
-"  -n/--numeric			When specified once, show network addresses numerically (default behaviour).\n"
+"  -n, --numeric			When specified once, show network addresses numerically (default behaviour).\n"
 "  				When specified twice, show Internet services,\n"
 "				user IDs and group IDs numerically.\n"
 "				When specified thrice, also show protocols numerically.\n"
 "  -N				Translate IP addresses to names.\n"
-"  -a/--handle			Output rule handle.\n"
-"  -I/--includepath <directory>	Add <directory> to the paths searched for include files.\n"
+"  -a, --handle			Output rule handle.\n"
+"  -I, --includepath <directory>	Add <directory> to the paths searched for include files.\n"
 #ifdef DEBUG
 "  --debug <level [,level...]>	Specify debugging level (scanner, parser, eval, netlink, mnl, proto-ctx, segtree, all)\n"
 #endif
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 1 line · Piyush Pangtey

Replaced '/' between shortopt and longopt with ',' , as used by other utilities.

Applied, thanks.