Jon Sequeira
Jon Sequeira
You can get option values and other information from within a validator: ```C# var optionA = new Option("-a"); var optionB = new Option("-b"); var command = new RootCommand { optionA,...
Thanks for the kinds words! `FromAmong` is doing two things with the values you give it. It's adding a validator as well as calling `AddCompletions`. In your case I'd say...
It's used here: https://github.com/dotnet/command-line-api/blob/de20229747f5a7ecd14df18ac6d547fbe462e524/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs#L232-L236
I see. Yes, it probably needs to be left in for backwards compatibility for now. > Besides, what's the idea behind passing currentProcessFileNameWithoutExtension as --suggestion-command? That does not include the...
The string splitter is intended to emulate the behavior of the command line splitter that prepares the arguments passed to `Main(string[] args)`. From a user's perspective, this behavior will vary...
Keep in mind that during command line invocation of your app, `CommandLineStringSplitter` is not used. The main goal of the `CommandLineStringSplitter` is to support completions and testing, though unless we...
> I'm not sure the users would use which shell. For me, I usually use pwsh on windows, sometimes bash on linux. @WeihanLi Exactly. And each user will need to...
The convention in most command line help (at least for options) is for the short-form aliases to precede the long-form aliases, so the current ordering is deliberate. There's been discussion...
Have you looked at the `HelpBuilder.CustomizeSymbol` APIs? I think these can be used to replace the default completions behavior but I'm not certain of it. If they can't be used...
I think some discussion is needed. There was concern in our previous API review that the root namespace would be too cluttered for people to immediately find the most important...