summary refs log tree commit diff
path: root/Completion/Linux/Command/_ipset
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Linux/Command/_ipset')
-rw-r--r--Completion/Linux/Command/_ipset78
1 files changed, 39 insertions, 39 deletions
diff --git a/Completion/Linux/Command/_ipset b/Completion/Linux/Command/_ipset
index 244cb8f22..7896eace7 100644
--- a/Completion/Linux/Command/_ipset
+++ b/Completion/Linux/Command/_ipset
@@ -5,17 +5,17 @@ local -a args from_to hash cmds listopts
 
 _set_types () {
 	_values -S \  "Set type" \
-		'ipmap[Up to 65536 IP addresses]' \
-		'macipmap[Up to 65536 IP addresses with MAC]' \
-		'portmap[Up to 65536 ports]' \
-		'iphash[Hash of IP addresses]' \
-		'nethash[Hash of network addresses]' \
-		'ipporthash[Hash of IP address and port pairs]' \
-		'ipportiphash[Hash of IP address,port and IP address triples]' \
-		'ipportnethash[Hash of IP address,port and network address triples]' \
-		'iptree[Tree of IP addresses, optionally with timeout]' \
-		'iptreemap[Tree of IP addresses or networks]' \
-		'setlist[List of sets]'
+		'ipmap[up to 65536 IP addresses]' \
+		'macipmap[up to 65536 IP addresses with MAC]' \
+		'portmap[up to 65536 ports]' \
+		'iphash[hash of IP addresses]' \
+		'nethash[hash of network addresses]' \
+		'ipporthash[hash of IP address and port pairs]' \
+		'ipportiphash[hash of IP address,port and IP address triples]' \
+		'ipportnethash[hash of IP address,port and network address triples]' \
+		'iptree[tree of IP addresses, optionally with timeout]' \
+		'iptreemap[tree of IP addresses or networks]' \
+		'setlist[list of sets]'
 }
 
 if [[ $words[2] = (-q|--quiet) ]]; then
@@ -50,9 +50,9 @@ from_to=('(--network)--from[from IP or network (with --netmask)]:IP'
 	'(--network)--to[to IP or network (with --netmask)]:IP'
 	'(--from --to)--network[network]:IP/mask'
 )
-hash=(	'--hashsize[The initial hash size (default 1024)]:hash size'
-	'--probes[Max number of tries to resolve clashing (default 8)]:probes'
-	'--resize[Ratio of increasing hash size after unsuccessful <probes> number of double-hashing]:percent'
+hash=(	'--hashsize[the initial hash size (default 1024)]:hash size'
+	'--probes[max number of tries to resolve clashing (default 8)]:probes'
+	'--resize[ratio of increasing hash size after unsuccessful <probes> number of double-hashing]:percent'
 )
 
 case $words[offset+2]; in
@@ -65,7 +65,7 @@ case $words[offset+2]; in
 	  ;;
 	  macipmap)
 		args=(	$from_to
-			'--matchunset[Always match IP addresses which could be stored in the set but are not]'
+			'--matchunset[always match IP addresses which could be stored in the set but are not]'
 		)
 	  ;;
 	  portmap)
@@ -85,21 +85,21 @@ case $words[offset+2]; in
 		args=(	$from_to $hash )
 	  ;;
 	  iptree)
-	  	args=(	'--timeout[Timeout value for the entries in seconds (default 0)]:timeout' )
+	  	args=(	'--timeout[timeout value for the entries in seconds (default 0)]:timeout' )
 	  ;;
 	  iptreemap)
-	  	args=(	'--gc[Garbage collection inverval (default 300 seconds)]:timeout' )
+	  	args=(	'--gc[garbage collection inverval (default 300 seconds)]:timeout' )
 	  ;;
 	  setlist)
-	  	args=(	'--size[Size of the new setlist (default 8)]:size' )
+	  	args=(	'--size[size of the new setlist (default 8)]:size' )
 	  ;;
 	esac
   ;;
   -T|--test)
-	args=(	'(-b --binding)'{-b,--binding}'[Test wether '$words[offset+4]' points to the specified binding]:::_ipsets' )
+	args=(	'(-b --binding)'{-b,--binding}'[test whether '$words[offset+4]' points to the specified binding]:::_ipsets' )
   ;;
   -B|--bind)
-	args=(	'(-b --binding)'{-b,--binding}'[Value of the binding]:::_ipsets' )
+	args=(	'(-b --binding)'{-b,--binding}'[value of the binding]:::_ipsets' )
   ;;
 esac
 
@@ -139,25 +139,25 @@ cmds=(-N -X -F -E -W -S -R -A -D -T -B -U -H --create --destroy --flush --rename
 listopts=(-n --numeric -s --sorted -L --list -nL -sL -nsL -snL -ns -sn)
 
 _arguments \
-	"($cmds $listopts)"{-N,--create}'[Create a set]:set name::::_set_types' \
-	"($cmds $listopts)"{-X,--destroy}'[Destroy specified set (or all if none specified)]:set name:_sets' \
-	"($cmds $listopts)"{-F,--flush}'[Flush specified set (or all if none specified)]:set name:_sets' \
+	"($cmds $listopts)"{-N,--create}'[create a set]:set name::::_set_types' \
+	"($cmds $listopts)"{-X,--destroy}'[destroy specified set (or all if none specified)]:set name:_sets' \
+	"($cmds $listopts)"{-F,--flush}'[flush specified set (or all if none specified)]:set name:_sets' \
 	"($cmds $listopts)"{-E,--rename}'[rename set]:current set name:_ipsets:new set name:' \
 	"($cmds $listopts)"{-W,--swap}'[swap two sets]:::_ipsets:::_ipsets' \
-	"($cmds -L --list -q --quiet -nL -sL -nsL -snL)"{-L,--list}'[List the entries and bindings for the specified set (or all if none specified)]:::_sets' \
-	"($cmds -L --list -q --quiet -n --numeric -snL -nsL -sL -ns -sn)"-nL'[List the entries and bindings for the specified set (or all if none specified) \- numeric output]:::_sets' \
-	"($cmds -L --list -q --quiet -s --sorted  -snL -nsL -nL -ns -sn)"-sL'[List the entries and bindings for the specified set (or all if none specified) \- sorted output]:::_sets' \
-	"($cmds $listopts -q --quiet)"{-nsL,-snL}'[List the entries and bindings for the specified set (or all if none specified) \- sorted numeric output]:::_sets' \
-	"($cmds $listopts)"{-S,--save}'[Save the given set (or all if none specified)]:::_sets' \
-	"($cmds $listopts)"{-R,--restore}'[Restore a saved session generated by --save from stdin]' \
-	"($cmds $listopts)"{-A,--add}'[Add an IP to a set]:::_ipsets:IP' \
-	"($cmds $listopts)"{-D,--del}'[Delete an IP from a set]:::_ipsets:::_ips' \
-	"($cmds $listopts)"{-T,--test}'[Test wether an IP is in a set or the IP points to the specified binding]:::_ipsets:::_ips' \
-	"($cmds $listopts)"{-B,--bind}'[Bind the IP in setname to to-setname]:::_ipsets:::_ips' \
-	"($cmds $listopts)"{-U,--unbind}'[Delete the binding belonging to IP in set setname]:::_ipsets:::_ips' \
-	"($cmds $listopts)"{-H,--help}'[Print help and settype specific help if settype specified]:::_set_types' \
-	"(-q --quiet $listopts)"{-q,--quiet}'[Suppress any output to stdout and stderr]' \
-	"($cmds -s --sorted  -q --quiet -sL -nsL -snL -ns -sn)"{-s,--sorted}'[Sorted output]' \
-	"($cmds -n --numeric -q --quiet -nL -nsL -snL -ns -sn)"{-n,--numeric}"[Numeric output; don't resolve host names, network names and services]" \
-	"($cmds -ns -sn  -q --quiet -nL -sL -nsL -snL -n --numeric -s --sorted)"{-ns,-sn}'[Sorted numeric output]' \
+	"($cmds -L --list -q --quiet -nL -sL -nsL -snL)"{-L,--list}'[list the entries and bindings for the specified set (or all if none specified)]:::_sets' \
+	"($cmds -L --list -q --quiet -n --numeric -snL -nsL -sL -ns -sn)"-nL'[list the entries and bindings for the specified set (or all if none specified) \- numeric output]:::_sets' \
+	"($cmds -L --list -q --quiet -s --sorted  -snL -nsL -nL -ns -sn)"-sL'[list the entries and bindings for the specified set (or all if none specified) \- sorted output]:::_sets' \
+	"($cmds $listopts -q --quiet)"{-nsL,-snL}'[list the entries and bindings for the specified set (or all if none specified) \- sorted numeric output]:::_sets' \
+	"($cmds $listopts)"{-S,--save}'[save the given set (or all if none specified)]:::_sets' \
+	"($cmds $listopts)"{-R,--restore}'[restore a saved session generated by --save from stdin]' \
+	"($cmds $listopts)"{-A,--add}'[add an IP to a set]:::_ipsets:IP' \
+	"($cmds $listopts)"{-D,--del}'[delete an IP from a set]:::_ipsets:::_ips' \
+	"($cmds $listopts)"{-T,--test}'[test wether an IP is in a set or the IP points to the specified binding]:::_ipsets:::_ips' \
+	"($cmds $listopts)"{-B,--bind}'[bind the IP in setname to to-setname]:::_ipsets:::_ips' \
+	"($cmds $listopts)"{-U,--unbind}'[delete the binding belonging to IP in set setname]:::_ipsets:::_ips' \
+	"($cmds $listopts)"{-H,--help}'[print help and settype specific help if settype specified]:::_set_types' \
+	"(-q --quiet $listopts)"{-q,--quiet}'[suppress any output to stdout and stderr]' \
+	"($cmds -s --sorted  -q --quiet -sL -nsL -snL -ns -sn)"{-s,--sorted}'[sorted output]' \
+	"($cmds -n --numeric -q --quiet -nL -nsL -snL -ns -sn)"{-n,--numeric}"[numeric output; don't resolve host names, network names and services]" \
+	"($cmds -ns -sn  -q --quiet -nL -sL -nsL -snL -n --numeric -s --sorted)"{-ns,-sn}'[sorted numeric output]' \
 	"$args[@]"