about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMeng Bo <mengbo@lnu.edu.cn>2020-09-21 15:17:00 +0800
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-09-23 11:00:54 +0000
commit59a451abae442892e35b13844a612c7723ce699c (patch)
tree56b9cdc12a29d8fe813a5853866f7310646cc023
parent794edac63850dfc1ffd7c971060fa7ec64dc9803 (diff)
downloadzsh-59a451abae442892e35b13844a612c7723ce699c.tar.gz
zsh-59a451abae442892e35b13844a612c7723ce699c.tar.xz
zsh-59a451abae442892e35b13844a612c7723ce699c.zip
github #65: _nmap: Rename option flags (s/_/-/g)
Nmap commands that previously included an underscore (--max_rtt_timeout, --send_eth, --host_timeout, etc.) have been renamed to use a hyphen in the preferred format.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_nmap24
2 files changed, 17 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 047e6c1d4..3f69f73a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-09-23  Meng Bo  <mengbo@lnu.edu.cn>
+
+	* github #65: Completion/Unix/Command/_nmap: Rename option flags
+	(s/_/-/g)
+
 2020-09-22  Jacob Menke  <linux.dev25@gmail.com>
 
 	* 47395: Completion/Base/Utility/_store_cache: Don't leak the
diff --git a/Completion/Unix/Command/_nmap b/Completion/Unix/Command/_nmap
index b3d3d488a..2a507baa3 100644
--- a/Completion/Unix/Command/_nmap
+++ b/Completion/Unix/Command/_nmap
@@ -17,7 +17,7 @@ _arguments -C \
   '-h[show help information]' \
   '*-o-[log results]:log format:->log-forms:log filename:_files' \
   '--resume[resume cancelled scan]:log filename:_files' \
-  '--append_output[append results to any log files]' \
+  '--append-output[append results to any log files]' \
   '-iL[read target specifications from file]:file:_files' \
   '-iR[scan random hosts]:num hosts' \
   '-p[specify ports to try]:port numbers' \
@@ -26,24 +26,24 @@ _arguments -C \
   '-S[specify source address]:address:_hosts' \
   '-e[specify interface to use]:network interface:_net_interfaces' \
   '-g[specify source port number]:port number' \
-  '--data_length[add random data to packets]:data length' \
+  '--data-length[add random data to packets]:data length' \
   '(-R)-n[skip reverse DNS to speed things up]' \
   '(-n)-R[always do reverse DNS on targets]' \
   "-r[don't randomize order in which ports are scanned]" \
   '-ttl[specify IPv4 time to live for sent packets]' \
-  '--randomize_hosts[scan hosts in random order]' \
+  '--randomize-hosts[scan hosts in random order]' \
   '-M[specify maximum number of parallel TCP connects]:maximum TCP connects' \
-  '--packet_trace[show all packets sent in tcpdump-like format]' \
-  '--version_trace[show packets related to version scanning]' \
+  '--packet-trace[show all packets sent in tcpdump-like format]' \
+  '--version-trace[show packets related to version scanning]' \
   '--datadir[specify directory containing data files]:directory:_directories' \
   '-T[specify timing policy]:timing policy:(Paranoid Sneaky Polite Normal Aggressive Insane)' \
-  '--host_timeout[specify maximum time for scanning a single host]:timeout (ms)' \
-  '--max_rtt_timeout[maximum time for a probe response]:timeout (ms)' \
-  '--min_rtt_timeout[minimum time to wait for a probe response]:time (ms)' \
-  '--initial_rtt_timeout[specify initial probe timeout]:timeout (ms)' \
-  '--max_parallelism[specify max number of scans to perform in parallel]:number' \
-  '--min_parallelism[scan at least specified number of ports in parallel]:number' \
-  '--scan_delay[specify minimum amount of time between probes]:delay (ms)' \
+  '--host-timeout[specify maximum time for scanning a single host]:timeout (ms)' \
+  '--max-rtt-timeout[maximum time for a probe response]:timeout (ms)' \
+  '--min-rtt-timeout[minimum time to wait for a probe response]:time (ms)' \
+  '--initial-rtt-timeout[specify initial probe timeout]:timeout (ms)' \
+  '--max-parallelism[specify max number of scans to perform in parallel]:number' \
+  '--min-parallelism[scan at least specified number of ports in parallel]:number' \
+  '--scan-delay[specify minimum amount of time between probes]:delay (ms)' \
   '--interactive[go into interactive mode]' \
   '*:host:_hosts' && ret=0