about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_perforce12
1 files changed, 12 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce
index 271521141..a1308ffa5 100644
--- a/Completion/Unix/Command/_perforce
+++ b/Completion/Unix/Command/_perforce
@@ -2127,6 +2127,18 @@ _perforce_cmd_protect() {
 }
 
 
+(( $+functions[_perforce_cmd_protects] )) ||
+_perforce_cmd_protects() {
+  _arguments -s : \
+    '(-g -u)-a[show for all users]' \
+    '(-a -u)-g[select by group]:perforce group:_perforce_groups' \
+    '(-a -g)-u[select by user]:perforce user:_perforce_users' \
+    '-h[limit to host]:host:_perforce_hosts' \
+    '-m[single word summary]' \
+    '*:file:_perforce_files'
+}
+
+
 (( $+functions[_perforce_cmd_reopen] )) ||
 _perforce_cmd_reopen() {
   _arguments -s : \