-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-7053] Fix zsh completion script #1514
Conversation
@@ -47,7 +47,7 @@ class ArgumentParserTests: XCTestCase { | |||
let parser = ArgumentParser(commandName:"SomeBinary", usage: "sample parser", overview: "Sample overview") | |||
|
|||
let package = parser.add(positional: "package name of the year", kind: String.self, usage: "The name of the package") | |||
let revision = parser.add(option: "--revision", kind: String.self, usage: "The revision") | |||
let revision = parser.add(option: "--revision", kind: String.self, usage: "The revision[Experimental]") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be reverted as it is not experimental :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, its mistake.
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove these whitespace diffs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops , I remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, this looks good! I requested some minor changes.
Thanks for quickly response. I fixed it. |
@swift-ci please smoke test |
👏 |
🚀 |
Solved SR-7053 by adding escaping
[
and]
.Before:
$ swift build $ ./.build/debug/swift-package completion-tool generate-zsh-script>/usr/local/share/zsh/site-functions/_swift $ zsh $ swift package --[TAB] _arguments:comparguments:319: invalid option definition: --enable-build-manifest-caching[Enable llbuild manifest caching [Experimental]]
After: