示例#1
0
 protected Argument(bool?reportTimings, bool?beVerbose, bool?provideHelp)
 {
     this.reportTimings = reportTimings;
     this.beVerbose     = beVerbose;
     this.provideHelp   = provideHelp;
     this.semantics     = OptionSemantics.FlagSet;
     operandAffinity    = OperandAffinity.NoOperand;
 }
示例#2
0
        protected Argument(OptionSemantics semantics, String[] values)
        {
            this.semantics = semantics;
            switch (semantics)
            {
            case OptionSemantics.Illegal:
            case OptionSemantics.Unknown:
            case OptionSemantics.FlagSet:
            case OptionSemantics.Operand:
            case OptionSemantics.QuotedOperand:
                operandAffinity = OperandAffinity.NoOperand;
                break;

            default:
                operandAffinity = OperandAffinity.RequiresOperand;
                break;
            }
            this.operands = values;
        }
示例#3
0
 protected Argument(OptionSemantics semantics)
 {
     this.semantics  = semantics;
     operandAffinity = OperandAffinity.RequiresOperand;
 }