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

[Question] Handling global options in CLI apps with v5 framework #140

Open
rozumak opened this issue Sep 2, 2024 · 2 comments
Open

[Question] Handling global options in CLI apps with v5 framework #140

rozumak opened this issue Sep 2, 2024 · 2 comments
Labels

Comments

@rozumak
Copy link

rozumak commented Sep 2, 2024

It's common for CLI apps to have global/common options that apply to most commands. These options are usually placed before the command text.

For example, in Entity Framework:

dotnet ef [options] [command]

Global options:
  --no-color       Don't colorize output.
  --prefix-output  Prefix output with level.

What is your recommendation for handling these cases using your v5 framework? Is there any support or plans to support this?

Thanks for the great framework!

@neuecc
Copy link
Member

neuecc commented Sep 9, 2024

That's a good suggestion, I'd like to consider adding it.

Copy link

github-actions bot commented Mar 9, 2025

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the stale label Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants