-
Notifications
You must be signed in to change notification settings - Fork 103
Subcommands in Help print - Syntax review #129
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
base: master
Are you sure you want to change the base?
Conversation
Not strictly concerning this change, but related. It would nice to expose a method that user code can call to show the help for a command. Currently I can't see how to do this without totally rebuilding the help. |
@DamianReeves where in user code are you thinking of? Something like this? : // Program.cs
var app = ConsoleApp.Create();
app.Add<TestCommand>("test");
app.Run(args);
string testHelpOutput = app.GetHelp("test"); or via Dependency Injection in a command? |
Just bumping to see if this is still possible? I think both this and an exposed Help/Version method would be ideal. |
This PR 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. |
Based on the discussion in #123. I have moved to using an app-based method to set the display of subcommands to :
I want this PR to be an ongoing discussion to define all the possible cases in the test that should pass, before revising the generator. Input is very much appreciated.
I don't think it makes sense to move forward with #125 before this PR gets resolved.