boundary/api_cli.py
def add_arguments(self):
        """
        Configure handling of command line arguments.
        """
        self.add_logging_argument()
        self.parser.add_argument('-a', '--api-host', dest='api_host', action='store', metavar="api_host",
                                 help='{0} API host endpoint'.format(self.product_name))
        self.parser.add_argument('-e', '--email', dest='email', action='store', metavar="e_mail",
                                 help='e-mail that has access to the {0} account'.format(self.product_name))
        self.parser.add_argument('-t', '--api-token', dest='api_token', required=False, action='store',
                                 metavar="api_token",
                                 help='API token for given e-mail that has access to the {0} account'.format(
                                     self.product_name))
        self.parser.add_argument('-z', '--curl', dest='curl', required=False, action='store_true', default=False,
                                 help='Output the corresponding curl command line and exit')
def add_arguments(self):
        self.add_logging_argument()
        self.parser.add_argument('-a', '--api-host', dest='api_host', action='store', metavar="api_host",
                                 help='{0} API host endpoint'.format(self.product_name))
        self.parser.add_argument('-e', '--email', dest='email', action='store', metavar="e_mail",
                                 help='e-mail that has access to the {0} account'.format(self.product_name))
        self.parser.add_argument('-t', '--api-token', dest='api_token', required=False, action='store',
                                 metavar="api_token",
                                 help='API token for given e-mail that has access to the {0} account'.format(
                                     self.product_name))
        self.parser.add_argument('-z', '--curl', dest='curl', required=False, action='store_true', default=False,
                                 help='Output the corresponding curl command line and exit')
def add_arguments ( self ) : self . add_logging_argument ( ) self . parser . add_argument ( '-a' , '--api-host' , dest = 'api_host' , action = 'store' , metavar = "api_host" , help = '{0} API host endpoint' . format ( self . product_name ) ) self . parser . add_argument ( '-e' , '--email' , dest = 'email' , action = 'store' , metavar = "e_mail" , help = 'e-mail that has access to the {0} account' . format ( self . product_name ) ) self . parser . add_argument ( '-t' , '--api-token' , dest = 'api_token' , required = False , action = 'store' , metavar = "api_token" , help = 'API token for given e-mail that has access to the {0} account' . format ( self . product_name ) ) self . parser . add_argument ( '-z' , '--curl' , dest = 'curl' , required = False , action = 'store_true' , default = False , help = 'Output the corresponding curl command line and exit' )
Configure handling of command line arguments.
Configure handling of command line arguments .