[PATCH 3/7] man: layout and colorize synopsis similar to iptables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jan Engelhardt <jengelh@xxxxxxx>
---
 ebtables-legacy.8.in | 57 +++++++++++++++++++++++++-------------------
 1 file changed, 32 insertions(+), 25 deletions(-)

diff --git a/ebtables-legacy.8.in b/ebtables-legacy.8.in
index c12f737..2a8e7ad 100644
--- a/ebtables-legacy.8.in
+++ b/ebtables-legacy.8.in
@@ -26,31 +26,38 @@
 .SH NAME
 ebtables-legacy \(em Ethernet bridge frame table administration (@PACKAGE_VERSION@)
 .SH SYNOPSIS
-.BR "ebtables " [ -t " table ] " - [ ACDI "] chain rule specification [match extensions] [watcher extensions] target"
-.br
-.BR "ebtables " [ -t " table ] " -P " chain " ACCEPT " | " DROP " | " RETURN
-.br
-.BR "ebtables " [ -t " table ] " -F " [chain]"
-.br
-.BR "ebtables " [ -t " table ] " -Z " [chain]"
-.br
-.BR "ebtables " [ -t " table ] " -L " [" -Z "] [chain] [ [" --Ln "] | [" --Lx "] ] [" --Lc "] [" --Lmac2 ]
-.br
-.BR "ebtables " [ -t " table ] " -N " chain [" "-P ACCEPT " | " DROP " | " RETURN" ]
-.br
-.BR "ebtables " [ -t " table ] " -X " [chain]"
-.br
-.BR "ebtables " [ -t " table ] " -E " old-chain-name new-chain-name"
-.br
-.BR "ebtables " [ -t " table ] " --init-table
-.br
-.BR "ebtables " [ -t " table ] [" --atomic-file " file] " --atomic-commit
-.br
-.BR "ebtables " [ -t " table ] [" --atomic-file " file] " --atomic-init
-.br
-.BR "ebtables " [ -t " table ] [" --atomic-file " file] " --atomic-save
-.br
-
+\fBebtables\fP [\fB\-t\fP \fItable\fP] {\fB\-A\fP|\fB\-C\fP|\fB\-D\fP}
+\fIchain\fP \fIrule-specification\fP
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-I\fP \fIchain\fP [\fIrulenum\fP]
+\fIrule-specification\fP
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-D\fP \fIchain rulenum\fP
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] {\fB\-F\fP|\fB\-Z\fP} [\fIchain\fP
+[\fIrulenum\fP]]
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-L\fP [\fB\-\-Lc\fP]
+[\fB\-\-Lmac2\fP] [\fB\-\-Ln\fP] [\fB\-\-Lx\fP] [\fIchain\fP [\fIrulenum\fP]]
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-N\fP \fIchain\fP [\fB\-P\fP
+\fIpolicy\fP]
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-X\fP [\fIchain\fP]
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-P\fP \fIchain policy\fP
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-E\fP \fIold-chain-name
+new-chain-name\fP
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-\-init-table\fP
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] [\fB\-\-atomic\-file\fP \fIfile\fP]
+{\fB\-\-atomic\-commit\fP|\fB\-\-atomic\-init\fP|\fB\-\-atomic\-save\fP}
+.PP
+rule-specification := [match-options] [watcher-options] [target]
+.PP
+target := \fB\-j\fP \fItargetname\fP [target-options]
 .SH LEGACY
 This tool uses the old xtables/setsockopt framework, and is a legacy version
 of ebtables. That means that a new, more modern tool exists with the same
-- 
2.42.1




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux