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

In mangen split OPTIONS into OPTIONS and GLOBAL OPTIONS #5844

Closed
2 tasks done
0xAdk opened this issue Dec 14, 2024 · 4 comments
Closed
2 tasks done

In mangen split OPTIONS into OPTIONS and GLOBAL OPTIONS #5844

0xAdk opened this issue Dec 14, 2024 · 4 comments
Labels
A-man Area: man generator C-enhancement Category: Raise on the bar on expectations

Comments

@0xAdk
Copy link

0xAdk commented Dec 14, 2024

Please complete the following tasks

Clap Version

4.5.23

Describe your use case

If there are many global options and few for a subcommands it can be hard to easily figure out which options are specific to a subcommand.

Describe the solution you'd like

Splitting the option category into a option and global option would make distinguishing between global and subcommand specifiy options easy.

pr: #5845

@0xAdk 0xAdk added the C-enhancement Category: Raise on the bar on expectations label Dec 14, 2024
@0xAdk 0xAdk changed the title mangen: split option into options and global options In mangen split OPTIONS into OPTIONS and GLOBAL OPTIONS Dec 14, 2024
@epage epage added the A-man Area: man generator label Dec 16, 2024
@epage
Copy link
Member

epage commented Dec 16, 2024

If this is important to man, should it also be important for --help and the user should use help_heading("Global Options")?

@epage
Copy link
Member

epage commented Dec 16, 2024

Note: use of help_heading is being discussed in #3363.

@0xAdk
Copy link
Author

0xAdk commented Dec 22, 2024

I didn't know about help_heading, I created another pr for that separates options based on help_heading #5854.

@epage
Copy link
Member

epage commented Dec 24, 2024

Going to go ahead and close in favor of #3363 then. Let us know if there is a reason for this separately.

@epage epage closed this as not planned Won't fix, can't repro, duplicate, stale Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-man Area: man generator C-enhancement Category: Raise on the bar on expectations
Projects
None yet
Development

No branches or pull requests

2 participants