public ArgDef AddBool( string propName, string helpString, string shortSwitch, string longSwitch = null ) { var ad = new BoolArgDef( propName, shortSwitch, longSwitch, helpString ); Add( ad ); return ad; }
public ProgramArguments( bool caseSensitive = false ) { CaseSensitive = caseSensitive; ArgDef helpArg = new BoolArgDef( "Help", "?", "help", "Displays a help message" ); helpArg.HelpOrder = 1000; Add( helpArg ); ArgDef whatIfArg = new BoolArgDef( "WhatIf", "WhatIf", "WhatIf", "Shows what would occur without actually doing the actions" ); whatIfArg.HelpOrder=1001; Add( whatIfArg ); }