Fix for mistake in 982bb286f4
.
This commit is contained in:
parent
8a23227ec9
commit
ceb97fd0ee
1 changed files with 4 additions and 4 deletions
|
@ -115,7 +115,7 @@ def get_parsers():
|
||||||
'-b', '--beta',
|
'-b', '--beta',
|
||||||
help=('Enable beta functionality. '),
|
help=('Enable beta functionality. '),
|
||||||
action='store_true', dest='beta',
|
action='store_true', dest='beta',
|
||||||
default=False)
|
default='CDIST_BETA' in os.environ)
|
||||||
|
|
||||||
# Main subcommand parser
|
# Main subcommand parser
|
||||||
parser['main'] = argparse.ArgumentParser(
|
parser['main'] = argparse.ArgumentParser(
|
||||||
|
@ -149,7 +149,7 @@ def get_parsers():
|
||||||
help=('Specify custom cache path pattern. If '
|
help=('Specify custom cache path pattern. If '
|
||||||
'it is not set then default hostdir is used.'),
|
'it is not set then default hostdir is used.'),
|
||||||
dest='cache_path_pattern',
|
dest='cache_path_pattern',
|
||||||
default=None)
|
default=os.environ.get('CDIST_CACHE_PATH_PATTERN'))
|
||||||
parser['config_main'].add_argument(
|
parser['config_main'].add_argument(
|
||||||
'-c', '--conf-dir',
|
'-c', '--conf-dir',
|
||||||
help=('Add configuration directory (can be repeated, '
|
help=('Add configuration directory (can be repeated, '
|
||||||
|
@ -195,13 +195,13 @@ def get_parsers():
|
||||||
'--remote-copy',
|
'--remote-copy',
|
||||||
help='Command to use for remote copy (should behave like scp).',
|
help='Command to use for remote copy (should behave like scp).',
|
||||||
action='store', dest='remote_copy',
|
action='store', dest='remote_copy',
|
||||||
default=None)
|
default=os.environ.get('CDIST_REMOTE_COPY'))
|
||||||
parser['config_main'].add_argument(
|
parser['config_main'].add_argument(
|
||||||
'--remote-exec',
|
'--remote-exec',
|
||||||
help=('Command to use for remote execution '
|
help=('Command to use for remote execution '
|
||||||
'(should behave like ssh).'),
|
'(should behave like ssh).'),
|
||||||
action='store', dest='remote_exec',
|
action='store', dest='remote_exec',
|
||||||
default=None)
|
default=os.environ.get('CDIST_REMOTE_EXEC'))
|
||||||
|
|
||||||
# Config
|
# Config
|
||||||
parser['config_args'] = argparse.ArgumentParser(add_help=False)
|
parser['config_args'] = argparse.ArgumentParser(add_help=False)
|
||||||
|
|
Loading…
Reference in a new issue