Skip to content

Commit

Permalink
fix: [un]compile usage message
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <[email protected]>
  • Loading branch information
vladdoster committed Feb 11, 2024
1 parent b55f1d4 commit 602d9e9
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions zinit.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3064,20 +3064,19 @@ You can try to prepend {apo}${___q}{lhi}@{apo}'{error} to the ID if the last ice
;;
(compile|uncompile)
(( ${+functions[.zinit-compile-plugin]} )) || builtin source "${ZINIT[BIN_DIR]}/zinit-install.zsh" || return 1
local action="$1"
local action="$1" all help quiet
shift
# setopt localoptions noksharrays
local help all quiet
zparseopts -D -F -K -- \
{h,-help}=help \
{q,-quiet}=quiet \
{a,-all}=all \
|| return
zparseopts -D -F -K -- {a,-all}=all {h,-help}=help {q,-quiet}=quiet || return
if (( $#help )); then
print -rC1 -- \
"$0 [-h|--help]" \
"$0 [-v|--verbose] [-f|--file=<file>] [<message...>]"
return
"Usage: zinit $action [OPTIONS]" \
" " \
"Remove unused data" \
" " \
"Options:" \
" -a, --all Remove all unused images not just dangling ones" \
" -f, --force Do not prompt for confirmation"
return 0
fi
if (( $#all )); then
.zinit-compile-uncompile-all ${action}
Expand All @@ -3087,7 +3086,6 @@ You can try to prepend {apo}${___q}{lhi}@{apo}'{error} to the ID if the last ice
.zinit-${action}-plugin "$f"
done
fi
return 0
(debug)
shift;
(( ${+functions[+zinit-debug]} )) || builtin source "${ZINIT[BIN_DIR]}/zinit-additional.zsh"
Expand Down

0 comments on commit 602d9e9

Please sign in to comment.