-
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
Suggestion See 'package -help' for more information.
is probably wrong
#7218
Labels
Comments
natecook1000
added a commit
to apple/swift-argument-parser
that referenced
this issue
Jan 3, 2024
When there's a default subcommand that captures pass-through args, only a standalone help flag should trigger help (since the flag should otherwise go to the subcommand). This fix makes that true for single- dash help flag names, which were previously being skipped, due to single-dash flags being lexed as both one whole flag and as a group of individual short flags. Re: apple/swift-package-manager#7218 Re: rdar://120422808
4 tasks
natecook1000
added a commit
to apple/swift-argument-parser
that referenced
this issue
Jan 4, 2024
When there's a default subcommand that captures pass-through args, only a standalone help flag should trigger help (since the flag should otherwise go to the subcommand). This fix makes that true for single- dash help flag names, which were previously being skipped, due to single-dash flags being lexed as both one whole flag and as a group of individual short flags. Re: apple/swift-package-manager#7218 Re: rdar://120422808
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
swift package sdfgsdfgsdfgdfs
produces following output:But suggestion to use
package -help
is not helpful as it produces same suggestion:swift package -h
orswift package --help
work as expected.This is confusing for user. Or custom long option
-help
is not working as expected or suggestionSee 'package -help' for more information.
is wrong.Expected behavior
Or
swift package -help
should work or suggestionSee 'package -help' for more information.
should be fixed.Actual behavior
Suggested
swift package -help
produces same suggestion to useswift package -help
.Steps to reproduce
swift package sdfgsdfgsdfgdfs
.swift package -help
Swift Package Manager version/commit hash
No response
Swift & OS version (output of
swift --version ; uname -a
)The text was updated successfully, but these errors were encountered: