#NEWLINE# def get_parser( self , prog_name ) : #NEWLINE# #INDENT# parser = super ( CreateSecuritygroup , self ) . get_parser ( prog_name ) #NEWLINE# parser . add_argument ( '--name' , metavar = '<name>' , help = 'Name of the new securitygroup' ) #NEWLINE# parser . add_argument ( '--is-default' , metavar = '<true/false>' , default = False , help = 'Defaults to the default securitygroup of the group' ) #NEWLINE# parser . add_argument ( '--rule' , metavar = '<protocol=tcp|udp|icmp,port_range_max=integer,port_range_min=integer,remote_ip_prefix=cidr,remote_securitygroup_id=securitygroup_uuid>' , action = 'append' , type = utils . keyvalue_to_dict , dest = 'rules' , default = [ ] , help = 'Securitygroup rules. protocol: Protocol of packet, port_range_max: Starting port range, port_range_min: Ending port range, remote_ip_prefix: CIDR to match on, remote_securitygroup_id: Remote securitygroup id to apply rule. (Can be repeated)' ) #NEWLINE# return parser