Cysharp / ConsoleAppFramework

Zero Dependency, Zero Overhead, Zero Reflection, Zero Allocation, AOT Safe CLI Framework powered by C# Source Generator.
MIT License
1.61k stars 93 forks source link

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

Open rozumak opened 2 weeks ago

rozumak commented 2 weeks ago

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 commented 1 week ago

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