fix: {,un}compile usage message

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
Vladislav Doster 2024-03-03 04:29:40 -06:00
parent 4d94a1323f
commit e09ceedb27

View file

@ -3070,11 +3070,13 @@ You can try to prepend {apo}${___q}{lhi}@{apo}'{error} to the ID if the last ice
shift
zparseopts -D -F -K -- {a,-all}=all {h,-help}=help {q,-quiet}=quiet || return
if (( $#help )); then
+zi-log "Usage: zinit ${action} [OPTIONS]{nl}" \
"${action} plugins{nl}" \
'Options:{nl}' \
' {tab}-a, --all Remove all unused images not just dangling ones{nl}' \
' {tab}-q, --quiet Remove all unused images not just dangling ones'
print "Usage:"
print " zinit ${0} <options> <plugin>"
print " "
print "Options:"
print " -a, --all Checkout the specified branch"
print " -h, --help Checkout the specified branch"
print " -q, --quiet Checkout the specified tag or commit"
fi
if (( $#all )); then
.zinit-compile-uncompile-all ${action}; ___retval="${?}"