def Args(parser): super(Allow, Allow).Args(parser) arguments.AddValueArgToParser(parser) parser.add_argument( '--remove', action='store_true', help='Remove the specified values from the list of allowed values instead of adding them.' )
def Args(parser): super(Deny, Deny).Args(parser) arguments.AddValueArgToParser(parser) arguments.AddConditionFlagToParser(parser) parser.add_argument( '--remove', action='store_true', help='Remove the specified values from the list of denied values instead of adding them.' )
def Args(parser): super(Allow, Allow).Args(parser) arguments.AddValueArgToParser(parser) arguments.AddConditionFlagToParser(parser) label_manager_arguments.AddLabelParentArgToParser( parser, False, ('This flag must be specified as the parent of the LabelKey when the ' 'input for a condition expression is set as the LabelKey and ' 'LabelValue display names.')) parser.add_argument( '--remove', action='store_true', help= 'Remove the specified values from the list of allowed values instead of adding them.' )
def SetUp(self): self.parser = calliope_util.ArgumentParser() arguments.AddConstraintArgToParser(self.parser) arguments.AddResourceFlagsToParser(self.parser) arguments.AddConditionFlagToParser(self.parser) arguments.AddValueArgToParser(self.parser)