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 · 1 comment
Open

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

rozumak opened this issue Sep 2, 2024 · 1 comment

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.

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