Commit 619a465c authored by uydwj's avatar uydwj
Browse files

FIX: Prefix default values with "default_"

parent e4af0d0f
Pipeline #112176 passed with stage
in 22 seconds
import argparse
server = ''
api_version = '3.0'
default_server = ''
default_api_version = '3.0'
class ArgumentParser(argparse.ArgumentParser):
......@@ -13,9 +13,9 @@ class ArgumentParser(argparse.ArgumentParser):
self.add_argument('--token', '-t',
help='user API token', required=True)
self.add_argument('--server', '-s', default=server,
self.add_argument('--server', '-s', default=default_server,
help='webapi server')
self.add_argument('--api-version', default=api_version,
self.add_argument('--api-version', default=default_api_version,
help='webapi version')
def parse_args(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment