-
Notifications
You must be signed in to change notification settings - Fork 102
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
Comments
That's a good suggestion, I'd like to consider adding it. |
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. |
@neuecc Looks like this issue has been raised several times but auto-closed due to inactivity. Any chance you could look at porting @riddlemd 's PR to the latest version? #100 I realise that implementation may not be sufficient or applicable in the latest version. I would ask, if there's a global parameter public abstract class BaseCommand
{
/// <param name="nologo">Hide the logo</param>
public void Before(bool nologo) // somehow register this to run before ALL commands
{
if (!nologo) PrintLogo();
}
} Thanks. |
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:
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!
The text was updated successfully, but these errors were encountered: