in ftl/common/args.py [0:0]
def extra_args(parser, opt_list):
opt_dict = {
'python_cmd': [
'--python-cmd', {
"dest": 'python_cmd',
"action": 'store',
"default": constants.PYTHON_DEFAULT_CMD,
"help": 'The python command to be run (ex: python2.7)'
}
],
'pip_cmd': [
'--pip-cmd', {
"dest": 'pip_cmd',
"action": 'store',
"default": constants.PIP_DEFAULT_CMD,
"help": 'The pip command to be run (ex: pip)'
}
],
'virtualenv_cmd': [
'--virtualenv-cmd', {
"dest": 'virtualenv_cmd',
"action": 'store',
"default": constants.VIRTUALENV_DEFAULT_CMD,
"help": 'The virtualenv command to be run (ex: virtualenv)'
}
],
'venv_cmd': [
'--venv-cmd', {
"dest": 'venv_cmd',
"action": 'store',
"default": constants.VENV_DEFAULT_CMD,
"help": 'The venv command to be run (ex: <py> -m venv /env)'
}
],
'virtualenv_dir': [
'--virtualenv-dir', {
"dest": 'virtualenv_dir',
"action": 'store',
"default": constants.VIRTUALENV_DIR,
"help": 'The virtualenv command to be run (ex: virtualenv)'
}
],
}
for opt in opt_list:
arg_vars = opt_dict[opt]
parser.add_argument(arg_vars[0], **arg_vars[1])