fix: remove shift to prevent error when no arguments in Zsh

When no arguments are provided, Zsh reports "shift count must be <= $#".
Removing the shift ensures clashhelp works correctly in both Bash and Zsh
without producing any error messages.
This commit is contained in:
days0102 authored and ね律こ committed 2025-11-26 16:08:31 +08:00
1 parent f5344fd496
commit ce3f12227b
1 file changed
-1
-1
View File
@@ -354,7 +354,6 @@ function clashctl() {
clashupgrade "$@"
;;
*)
shift
clashhelp "$@"
;;
esac