Yoshifumi Kawai
Yoshifumi Kawai
That's a good suggestion, I'd like to consider adding it.
I came up with an idea where only global options are parsed immediately, which would allow us to: * Extract values in a typed manner * Use them in DI...
When AddGlobalOptions is called, it immediately performs parsing (regardless of order, searching through all of args) and returns the removed items in ref args. Therefore, using GlobalOptions will decrease performance....
If we parse immediately before Run, exceptions from parse failures will propagate through, resulting in behavior that differs from user expectations. So I think we should stop parsing immediately. I...
Proposal updated. ```csharp var app = ConsoleApp.Create(); // Func app.ConfigureGlobalOptions(builder => { var verbose = builder.AddOptionalGlobalOptions("-v|--verbose"); var noColor = builder.AddOptionalGlobalOptions("--no-color", "Don't colorize output."); var prefixOutput = builder.AddRequiredGlobalOptions("--prefix-output", "Prefix output with...
v5.7.0 support it. thank you for advices.
I see, that's a good feature too. I'd like to consider providing `HiddenAttribute`.
Thank you, I agree that this feature is necessary! Regarding the display of help, I am using Cocona as a reference, so I think it would be good if we...
Ah, you're right, it does seem like a good idea to take it from the class documentation! As for the Attribute, I think a separate one would be better, but...
I see. I don't think it's a good idea to configure on a per-command basis. If you want to be able to configure it, the whole thing should be default...