-
Notifications
You must be signed in to change notification settings - Fork 336
Display possible option values in help #594
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
Conversation
c8ec27d
to
e699a93
Compare
@swift-ci please test |
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 looks great! I'm a little concerned about how this will affect the help when a CaseIterable
type has a large number of values. Can we update the allValueStrings
documentation to show how to suppress/limit that number, or would it make sense to provide a configuration property to ArgumentHelp
? (e.g. maxCaseDisplay
)
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.
Updated docs look great! Added some light editing through the comments, then we can merge 👍🏻
Sources/ArgumentParser/Documentation.docc/Articles/CustomizingHelp.md
Outdated
Show resolved
Hide resolved
Sources/ArgumentParser/Documentation.docc/Articles/CustomizingHelp.md
Outdated
Show resolved
Hide resolved
Sources/ArgumentParser/Documentation.docc/Articles/CustomizingHelp.md
Outdated
Show resolved
Hide resolved
Sources/ArgumentParser/Documentation.docc/Articles/CustomizingHelp.md
Outdated
Show resolved
Hide resolved
Sources/ArgumentParser/Documentation.docc/Articles/CustomizingHelp.md
Outdated
Show resolved
Hide resolved
Sources/ArgumentParser/Parsable Types/ExpressibleByArgument.swift
Outdated
Show resolved
Hide resolved
Sources/ArgumentParser/Documentation.docc/Articles/CustomizingHelp.md
Outdated
Show resolved
Hide resolved
@swift-ci please test |
Updates HelpGenerator to print possible value options as a suffix to the user defined help string. In practice this looks like: > Set diagnostic level to report public declarations without an > availability attribute. (values: error, warn, ignore; default: warn)
eb4bff4
to
cffff99
Compare
@swift-ci please test |
Updates HelpGenerator to print possible value options as a suffix to the
user defined help string. In practice this looks like: