diff options
author | Pablo M. Bermudo Garay <pablombg@gmail.com> | 2017-06-23 18:38:25 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-06-26 19:04:56 +0200 |
commit | b4953803f26c442cdec4cad78a8261e9b97cd015 (patch) | |
tree | b44136b4981e5ac1af3e66646bfd5a2daefef41e /doc | |
parent | f9d3e2e15b7ad968f30643ca6da55b75f03686fd (diff) |
src: add --check option flag
Sometimes it can be useful to test if a command is valid without
applying any change to the rule-set. This commit adds a new option
flag (-c | --check) that performs a dry run execution of the commands.
Signed-off-by: Pablo M. Bermudo Garay <pablombg@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/nft.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/nft.xml b/doc/nft.xml index e9ccd63c..970acb54 100644 --- a/doc/nft.xml +++ b/doc/nft.xml @@ -52,6 +52,9 @@ vi:ts=4 sw=4 <option>-s | --stateless</option> </arg> <arg choice="opt"> + <option>-c | --check</option> + </arg> + <arg choice="opt"> <option>[-I | --includepath]</option> <replaceable>directory</replaceable> </arg> @@ -130,6 +133,14 @@ vi:ts=4 sw=4 </listitem> </varlistentry> <varlistentry> + <term><option>-c, --check</option></term> + <listitem> + <para> + Check commands validity without actually applying the changes. + </para> + </listitem> + </varlistentry> + <varlistentry> <term><option>-N</option></term> <listitem> <para> |