]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
src: use `-T` as the short option for `--numeric-time`.
authorJeremy Sowden <jeremy@azazel.net>
Mon, 21 Oct 2019 21:49:21 +0000 (22:49 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 22 Oct 2019 07:39:33 +0000 (09:39 +0200)
A new `--terse` option will be introduced in a later patch.  Change the
short option used for `--numeric-time` from `-t` to `-T` in order to
leave `-t` free.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/nft.txt
src/main.c

index 9bc5986b64163622a4f86a3bf8f589adf1dab13b..616640a84c94aff2336ce76532b5633e47823ea5 100644 (file)
@@ -93,7 +93,7 @@ For a full summary of options, run *nft --help*.
        Read input from an interactive readline CLI. You can use quit to exit, or use the EOF marker,
        normally this is CTRL-D.
 
-*-t*::
+*-T*::
 *--numeric-time*::
        Show time, day and hour values in numeric format.
 
index 577850e54f68c20cca4f97de18dffb7559292ab0..238c5e0bf9ef87a8c3ffee1639985c13f678b572 100644 (file)
@@ -42,10 +42,10 @@ enum opt_vals {
        OPT_GUID                = 'u',
        OPT_NUMERIC_PRIO        = 'y',
        OPT_NUMERIC_PROTO       = 'p',
-       OPT_NUMERIC_TIME        = 't',
+       OPT_NUMERIC_TIME        = 'T',
        OPT_INVALID             = '?',
 };
-#define OPTSTRING      "+hvcf:iI:jvnsNaeSupypt"
+#define OPTSTRING      "+hvcf:iI:jvnsNaeSupypT"
 
 static const struct option options[] = {
        {
@@ -145,7 +145,7 @@ static void show_help(const char *name)
 "  -S, --service                       Translate ports to service names as described in /etc/services.\n"
 "  -p, --numeric-protocol      Print layer 4 protocols numerically.\n"
 "  -y, --numeric-priority      Print chain priority numerically.\n"
-"  -t, --numeric-time          Print time values numerically.\n"
+"  -T, --numeric-time          Print time values numerically.\n"
 "  -a, --handle                        Output rule handle.\n"
 "  -e, --echo                  Echo what has been added, inserted or replaced.\n"
 "  -I, --includepath <directory>       Add <directory> to the paths searched for include files. Default is: %s\n"