From 110c9faccb7bd528d67c202721f33d9fd382a19a Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 23 Mar 2014 13:51:58 +0100 Subject: zsh: Unify completion help messages for --version and --help --- astraceroute.zsh | 4 ++-- bpfc.zsh | 4 ++-- flowtop.zsh | 4 ++-- ifpps.zsh | 4 ++-- mausezahn.zsh | 4 ++-- netsniff-ng.zsh | 2 +- trafgen.zsh | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/astraceroute.zsh b/astraceroute.zsh index fdcc495..4c65794 100644 --- a/astraceroute.zsh +++ b/astraceroute.zsh @@ -43,6 +43,6 @@ _arguments -s -S \ "(-X --payload)"{-X,--payload}"[Specify a payload string to test DPIs]:string:_gnu_generic" \ "(-Z --show-packet)"{-Z,--show-packet}"[Show returned packet on each hop]" \ "(-l --totlen)"{-l,--totlen}"[Specify total packet len]:lengths:_gnu_generic" \ - {-v,--version}"[Print version]:" \ - {-h,--help}"[Print this help]:" \ + {-v,--version}"[Print version and exit]:" \ + {-h,--help}"[Print help and exit]:" \ "*::args:_gnu_generic" diff --git a/bpfc.zsh b/bpfc.zsh index 04f04e7..2685bad 100644 --- a/bpfc.zsh +++ b/bpfc.zsh @@ -17,6 +17,6 @@ _arguments -s -S \ "(-b --bypass)"{-b,--bypass}"[Bypass filter validation (e.g. for bug testing)]" \ "(-d --dump)"{-d,--dump}"[Dump supported instruction table]" \ "(-V --verbose)"{-V,--verbose}"[Be more verbose]" \ - {-v,--version}"[Print version]:" \ - {-h,--help}"[Print this help]:" \ + {-v,--version}"[Print version and exit]:" \ + {-h,--help}"[Print help and exit]:" \ "*::args:_gnu_generic" diff --git a/flowtop.zsh b/flowtop.zsh index 878931c..c85c029 100644 --- a/flowtop.zsh +++ b/flowtop.zsh @@ -20,6 +20,6 @@ _arguments -s -S \ "(-S --sctp)"{-S,--sctp}"[Show only SCTP flows]" \ "(-s --show-src)"{-s,--show-src}"[Also show source, not only dest]" \ "(-u --update)"{-u,--update}"[Update GeoIP databases]" \ - {-v,--version}"[Print version]:" \ - {-h,--help}"[Print this help]:" \ + {-v,--version}"[Print version and exit]:" \ + {-h,--help}"[Print help and exit]:" \ "*::args:_gnu_generic" diff --git a/ifpps.zsh b/ifpps.zsh index 88a9c22..a1b3dd4 100644 --- a/ifpps.zsh +++ b/ifpps.zsh @@ -27,6 +27,6 @@ _arguments -s -S \ "(-o --omit-header)"{-o,--omit-header}"[Do not print the CSV header]" \ "(-m --median)"{-m,--median}"[Display median values]" \ "(-W --no-warn)"{-W,--no-warn}"[Suppress warnings]" \ - {-v,--version}"[Print version]:" \ - {-h,--help}"[Print this help]:" \ + {-v,--version}"[Print version and exit]:" \ + {-h,--help}"[Print help and exit]:" \ "*::args:_gnu_generic" diff --git a/mausezahn.zsh b/mausezahn.zsh index 95a9e35..b6934db 100644 --- a/mausezahn.zsh +++ b/mausezahn.zsh @@ -62,6 +62,6 @@ _arguments -s -S \ "(-V -VV -VVV)"{-V,-VV,-VVV}"[Verbose and more verbose mode]" \ "-q[Quiet mode, even omit 'important' standard short messages]" \ "-S[Simulation mode: DOES NOT put anything on the wire, this is typically combined with one of the verbose modes (v or V)]" \ - "-v[Show version]:" \ - "-h[Print this help]:" \ + "-v[Show version and exit]:" \ + "-h[Print help and exit]:" \ "*::args:_gnu_generic" diff --git a/netsniff-ng.zsh b/netsniff-ng.zsh index 122d661..682d66d 100644 --- a/netsniff-ng.zsh +++ b/netsniff-ng.zsh @@ -64,6 +64,6 @@ _arguments -s -S \ "(-l --ascii)"{-l,--ascii}"[Print human-readable packet data]" \ "(-U --update)"{-U,--update}"[Update GeoIP databases]" \ "(-V --verbose)"{-V,--verbose}"[Be more verbose]" \ - {-v,--version}"[Show version]:" \ + {-v,--version}"[Show version and exit]:" \ {-h,--help}"[Guess what?!]:" \ "*::args:_gnu_generic" diff --git a/trafgen.zsh b/trafgen.zsh index adfd8ad..6ebcda1 100644 --- a/trafgen.zsh +++ b/trafgen.zsh @@ -53,6 +53,6 @@ _arguments -s -S \ "(-e --example)"{-e,--example}"[Show built-in packet config example]:" \ "(-V --verbose)"{-V,--verbose}"[Be more verbose]" \ "(-C --no-cpu-stats)"{-C,--no-cpu-stats}"[Do not print CPU time statistics on exit]" \ - {-v,--version}"[Show version]:" \ + {-v,--version}"[Show version and exit]:" \ {-h,--help}"[Guess what?!]:" \ "*::args:_gnu_generic" -- cgit v1.2.3-54-g00ecf