perceval/backend.py
def _set_auth_arguments(self, basic_auth=True, token_auth=False):
        """Activate authentication arguments parsing"""

        group = self.parser.add_argument_group('authentication arguments')

        if basic_auth:
            group.add_argument('-u', '--backend-user', dest='user',
                               help="backend user")
            group.add_argument('-p', '--backend-password', dest='password',
                               help="backend password")
        if token_auth:
            group.add_argument('-t', '--api-token', dest='api_token',
                               help="backend authentication token / API key")
def _set_auth_arguments(self, basic_auth=True, token_auth=False):
        group = self.parser.add_argument_group('authentication arguments')

        if basic_auth:
            group.add_argument('-u', '--backend-user', dest='user',
                               help="backend user")
            group.add_argument('-p', '--backend-password', dest='password',
                               help="backend password")
        if token_auth:
            group.add_argument('-t', '--api-token', dest='api_token',
                               help="backend authentication token / API key")
def _set_auth_arguments ( self , basic_auth = True , token_auth = False ) : group = self . parser . add_argument_group ( 'authentication arguments' ) if basic_auth : group . add_argument ( '-u' , '--backend-user' , dest = 'user' , help = "backend user" ) group . add_argument ( '-p' , '--backend-password' , dest = 'password' , help = "backend password" ) if token_auth : group . add_argument ( '-t' , '--api-token' , dest = 'api_token' , help = "backend authentication token / API key" )
Activate authentication arguments parsing
Activate authentication arguments parsing