PLAT-1945 Better management command ergonomics
This commit is contained in:
@@ -43,7 +43,7 @@ def parse_args():
|
||||
lms.add_argument(
|
||||
'--settings',
|
||||
help="Which django settings module to use under lms.envs. If not provided, the DJANGO_SETTINGS_MODULE "
|
||||
"environment variable will be used if it is set, otherwise it will default to lms.envs.dev")
|
||||
"environment variable will be used if it is set, otherwise it will default to lms.envs.devstack_docker")
|
||||
lms.add_argument(
|
||||
'--service-variant',
|
||||
choices=['lms', 'lms-xml', 'lms-preview'],
|
||||
@@ -57,7 +57,7 @@ def parse_args():
|
||||
lms.set_defaults(
|
||||
help_string=lms.format_help(),
|
||||
settings_base='lms/envs',
|
||||
default_settings='lms.envs.dev',
|
||||
default_settings='lms.envs.devstack_docker',
|
||||
startup='lms.startup',
|
||||
)
|
||||
|
||||
@@ -70,7 +70,7 @@ def parse_args():
|
||||
cms.add_argument(
|
||||
'--settings',
|
||||
help="Which django settings module to use under cms.envs. If not provided, the DJANGO_SETTINGS_MODULE "
|
||||
"environment variable will be used if it is set, otherwise it will default to cms.envs.dev")
|
||||
"environment variable will be used if it is set, otherwise it will default to cms.envs.devstack_docker")
|
||||
cms.add_argument('-h', '--help', action='store_true', help='show this help message and exit')
|
||||
cms.add_argument(
|
||||
'--contracts',
|
||||
@@ -80,7 +80,7 @@ def parse_args():
|
||||
cms.set_defaults(
|
||||
help_string=cms.format_help(),
|
||||
settings_base='cms/envs',
|
||||
default_settings='cms.envs.dev',
|
||||
default_settings='cms.envs.devstack_docker',
|
||||
service_variant='cms',
|
||||
startup='cms.startup',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user