#NEWLINE# def get_parser( self , prog_name ) : #NEWLINE# #INDENT# parser = super ( SetEndpoint , self ) . get_parser ( enable_group ) #NEWLINE# parser . add_argument ( 'endpoint' , metavar = '<endpoint-id>' , help = 'Endpoint ID to modify' ) #NEWLINE# parser . add_argument ( '--region' , metavar = '<region-id>' , help = 'New endpoint region ID' ) #NEWLINE# parser . add_argument ( '--interface' , metavar = '<interface>' , choices = [ 'admin' , 'public' , 'internal' ] , help = 'New endpoint interface type (admin, public or internal)' ) #NEWLINE# parser . add_argument ( '--url' , metavar = '<url>' , help = 'New endpoint URL' ) #NEWLINE# parser . add_argument ( '--service' , metavar = '<service>' , help = 'New endpoint service (name or ID)' ) #NEWLINE# enable_group = parser . add_mutually_exclusive_group ( ) #NEWLINE# enable_group . add_argument ( '--enable' , dest = 'enabled' , action = 'store_true' , help = 'Enable endpoint' ) #NEWLINE# enable_group . add_argument ( '--disable' , dest = 'disabled' , action = 'store_true' , help = 'Disable endpoint' ) #NEWLINE# return parser