Skip to content
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

RFE: output negatable options in #27

Closed
djerius opened this issue Dec 5, 2022 · 3 comments
Closed

RFE: output negatable options in #27

djerius opened this issue Dec 5, 2022 · 3 comments

Comments

@djerius
Copy link
Contributor

djerius commented Dec 5, 2022

Currently the negated version of a negatable option isn't shown in the usage output, e.g. summary! is listed as --summary, not also --no-summary.

The fix might as simple as making Term::CLI::option_names return both.

@sbakker
Copy link
Owner

sbakker commented Dec 6, 2022

In the end it required a fix in lib/Term/CLI/Command.pm (option_names) for completion and lib/Term/CLI/Role/HelpText.pm (get_options_summary) for the usage text.

@sbakker
Copy link
Owner

sbakker commented Dec 6, 2022

Thanks for the RFE. Good one. ;-)

@sbakker sbakker closed this as completed Dec 6, 2022
@djerius
Copy link
Contributor Author

djerius commented Dec 6, 2022

Thanks! Thought I give you a few months breathing room before starting in with new RFEs.

Although, TBH, everything is working great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants