about summary refs log tree commit diff
path: root/Etc
diff options
context:
space:
mode:
authorMatthew Martin <phy1729@gmail.com>2022-03-31 17:35:32 -0500
committerMatthew Martin <phy1729@gmail.com>2022-03-31 17:36:21 -0500
commit283fc8596b817bf731c4dbf339a3943847d9dd12 (patch)
tree8d5c2f71c1d24b29afc3168a93f0e9209893864d /Etc
parent41eb200d66e4bea7bc5798888a1755cdf5daa3b0 (diff)
downloadzsh-283fc8596b817bf731c4dbf339a3943847d9dd12.tar.gz
zsh-283fc8596b817bf731c4dbf339a3943847d9dd12.tar.xz
zsh-283fc8596b817bf731c4dbf339a3943847d9dd12.zip
49907: Mention _numbers in completion guide
Diffstat (limited to 'Etc')
-rw-r--r--Etc/completion-style-guide2
1 files changed, 2 insertions, 0 deletions
diff --git a/Etc/completion-style-guide b/Etc/completion-style-guide
index 4fa0040a5..f7dcae230 100644
--- a/Etc/completion-style-guide
+++ b/Etc/completion-style-guide
@@ -75,6 +75,8 @@ but use:
 To indicate a default value, use square brackets:
   '--timeout[specify connection timeout]:timeout (ms) [5000]'
 These two conventions can be used together or individually as appropriate.
+Alternatively the `_numbers' function may be used:
+  '--timeout[specify connection timeout]: :_numbers -u ms -d 5000 timeout'
 
 Group descriptions should be singular because only one thing is being
 completed even though many may be listed. This applies even where you