You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespaceSystem.CommandLine.Builder{publicclassCommandLineBuilder{publicCommandLineBuilder(CommandrootCommand=null);publicCommandCommand{get;}publicParserBuild()}// All of the things that extend CommandLineBuilder should be instance members on CommandLineBuilder.// If UseHelpBuilder is providing namespace-based componentization then it can make sense here, but the type name is bad for it because// a) it says it's extending CommandLineBuilder, but doesn't (necessarily) and b) should have a named purpose, not just "SomethingExtensions".publicstaticclassCommandLineBuilderExtensions{// Is there only one environment variable, or is it multiple? I feel like I'd expect plurality here, but don't know why.publicstaticCommandLineBuilderUseEnvironmentVariableDirective(thisCommandLineBuilderbuilder);// What happens if this is called twice? If it's "last writer wins", then "Set" is a better verb than "Use". If it's accumulated, then Add. Applies to all of the Use- methods.publicstaticCommandLineBuilderUseExceptionHandler(thisCommandLineBuilderbuilder,Action<Exception,InvocationContext>onException=null,int?errorExitCode=null);// The middle overload feels like it must be doing something very different than the other two. You either need more overloads, or to rename something, or to remove the middle one, or something.publicstaticCommandLineBuilderUseHelp(thisCommandLineBuilderbuilder,int?maxWidth=null);publicstaticCommandLineBuilderUseHelp(thisCommandLineBuilderbuilder,string[]helpAliases);publicstaticCommandLineBuilderUseHelp(thisCommandLineBuilderbuilder,Action<HelpContext>customize,int?maxWidth=null);// Generic extension methods with no constraints are prohibited, otherwise they apply to object, which is prohibited.publicstaticTBuilderUseHelpBuilder<TBuilder>(thisTBuilderbuilder,Func<BindingContext,HelpBuilder>getHelpBuilder);publicstaticCommandLineBuilderUseLocalizationResources(thisCommandLineBuilderbuilder,LocalizationResourcesvalidationMessages);publicstaticCommandLineBuilderUseParseDirective(thisCommandLineBuilderbuilder,int?errorExitCode=null);publicstaticCommandLineBuilderUseParseErrorReporting(thisCommandLineBuilderbuilder,int?errorExitCode=null);publicstaticCommandLineBuilderUseSuggestDirective(thisCommandLineBuilderbuilder);// Does 0 disable it? Seems like `int TypoCorrectionLevel { get; set; }` to me; or, if 0 doesn't disable it, make it `int?`publicstaticCommandLineBuilderUseTypoCorrections(thisCommandLineBuilderbuilder,intmaxLevenshteinDistance=3);
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: