Closed alps2006 closed 2 months ago
which version of zsh are you using? I haven't encountered this before in zsh.
Thanks for your reply, the detail is below.
~/Documents/markdown ❯ zsh --version
zsh 5.9 (x86_64-apple-darwin23.0.0)
~/Documents/markdown ❯ type -a zsh
zsh is /opt/local/bin/zsh
zsh is /bin/zsh
zsh is /opt/local/bin/zsh
zsh is /bin/zsh
zsh is /opt/local/bin/zsh
I am not sure if there is some side effect (mostly in other shells) when changing --
to \--
.
so I made another revise, please try out the latest version:
https://github.com/skywind3000/z.lua/commit/7c890c3645081014eab4be2ab45e8640f86f62d7
I have found the reason why i cannot use --help
only, because there is a global alias that overrides --help entirely.
# bat to render --help
alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'
thank you very much, i close it.
A strange problem on
z.lua --init
I found the error location at
-h|--help) local arg_mode="-h" ;;
, and i resolved by escaping--help
, but why only --help?