Update setcap completion flags

This commit is contained in:
Shohei YOSHIDA 2025-05-16 16:24:04 +09:00
parent 98dd809126
commit 67e6bdbc3c
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,10 @@ _setcap() {
local curcontext=$curcontext state line expl ret=1
_arguments -C -s \
'-r[remove capability from file]' \
'--license[display the license info]' \
'-f[force setting even when the capability is invalid]' \
'-h[show help message and exit]' \
'-v[verify that the specified capabilities are currently associated with the file]' \
'-n[set the file capability for use only in a user namespace with this root user ID owner]:rootuid' \
'-q[make the program less verbose in its output]' \