public static NonTerminalCommandBuilder <TSettings> AddSwitch <TSettings>( this NonTerminalCommandBuilder <TSettings> commandBuilder, string longForm, string?shortForm, Action <TSettings> applicator) where TSettings : new() => commandBuilder.AddSwitch(SwitchDefinition <TSettings> .Create(longForm, shortForm, applicator));
public static NonTerminalCommandBuilder <TSettings> AddSwitch <TSettings>( this NonTerminalCommandBuilder <TSettings> commandBuilder, string longForm, Action <TSettings> applicator) where TSettings : new() => commandBuilder.AddSwitch(longForm, null, applicator);