oauth2_client/management/commands/oauth2client_app.py
def add_arguments(self, parser):
        """
        Arguments for fields we need populated in the resulting Application instance.
        Follow a convention that `argument name == model property name`
        Use help messages defined on the model.
        """
        super(Command, self).add_arguments(parser)
        parser.add_argument(
            '--client-id',
            type=str,
            help=help_text('client_id', Application)
        )
        parser.add_argument(
            '--client-secret',
            type=str,
            help=help_text('client_secret', Application)
        )
        parser.add_argument(
            '--authorization-grant-type',
            type=str,
            help=help_text('authorization_grant_type', Application),
            choices=[g[0] for g in Application.GRANT_TYPES]
        )
        parser.add_argument(
            '--service-host',
            type=str,
            help=help_text('service_host', Application)
        )
        parser.add_argument(
            '--token-uri',
            type=str,
            help=help_text('token_uri', Application)
        )
        parser.add_argument(
            '--scope',
            type=str,
            help=help_text('scope', Application)
        )
        parser.add_argument(
            '--extra-settings',
            type=json.loads,
            help=help_text('extra_settings', Application)
        )

        Arguments for fields we need populated in the resulting Application instance.
        Follow a convention that `argument name == model property name`
        Use help messages defined on the model.
        
Arguments for fields we need populated in the resulting Application instance.
Follow a convention that `argument name == model property name`
Use help messages defined on the model.
Arguments for fields we need populated in the resulting Application instance . Follow a convention that ` argument name == model property name ` Use help messages defined on the model .
def add_arguments(self, parser):
        super(Command, self).add_arguments(parser)
        parser.add_argument(
            '--client-id',
            type=str,
            help=help_text('client_id', Application)
        )
        parser.add_argument(
            '--client-secret',
            type=str,
            help=help_text('client_secret', Application)
        )
        parser.add_argument(
            '--authorization-grant-type',
            type=str,
            help=help_text('authorization_grant_type', Application),
            choices=[g[0] for g in Application.GRANT_TYPES]
        )
        parser.add_argument(
            '--service-host',
            type=str,
            help=help_text('service_host', Application)
        )
        parser.add_argument(
            '--token-uri',
            type=str,
            help=help_text('token_uri', Application)
        )
        parser.add_argument(
            '--scope',
            type=str,
            help=help_text('scope', Application)
        )
        parser.add_argument(
            '--extra-settings',
            type=json.loads,
            help=help_text('extra_settings', Application)
        )
def add_arguments ( self , parser ) : super ( Command , self ) . add_arguments ( parser ) parser . add_argument ( '--client-id' , type = str , help = help_text ( 'client_id' , Application ) ) parser . add_argument ( '--client-secret' , type = str , help = help_text ( 'client_secret' , Application ) ) parser . add_argument ( '--authorization-grant-type' , type = str , help = help_text ( 'authorization_grant_type' , Application ) , choices = [ g [ 0 ] for g in Application . GRANT_TYPES ] ) parser . add_argument ( '--service-host' , type = str , help = help_text ( 'service_host' , Application ) ) parser . add_argument ( '--token-uri' , type = str , help = help_text ( 'token_uri' , Application ) ) parser . add_argument ( '--scope' , type = str , help = help_text ( 'scope' , Application ) ) parser . add_argument ( '--extra-settings' , type = json . loads , help = help_text ( 'extra_settings' , Application ) )
Arguments for fields we need populated in the resulting Application instance.
Arguments for fields we need populated in the resulting Application instance .
"""
        Arguments for fields we need populated in the resulting Application instance.
        Follow a convention that `argument name == model property name`
        Use help messages defined on the model.
        """
self
parser