Skip to content

Fix code generated by --*-completion-zsh without program name specified - #127

Open
toy wants to merge 4 commits into
ruby:masterfrom
toy:compdef-default-program-name
Open

Fix code generated by --*-completion-zsh without program name specified#127
toy wants to merge 4 commits into
ruby:masterfrom
toy:compdef-default-program-name

Conversation

@toy

@toytoy commented Feb 1, 2026

Copy link
Copy Markdown

compsys method was defaulting program name using default argument value, so parser.compsys($stdout, arg) was overriding it with nil when program name was not specified.
Also use program_name in all places where File.basename($0) was used explicitly.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@toy