fix: add and remove not_for_commandline property
This commit is contained in:
parent
e87bcbd4c8
commit
c0d103f2e8
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,8 @@ def _main():
|
||||||
backward_compatibility=False, add_extra_options=False
|
backward_compatibility=False, add_extra_options=False
|
||||||
)
|
)
|
||||||
cmd_config = rougailconfig.config
|
cmd_config = rougailconfig.config
|
||||||
cmd_config.property.setdefault(frozenset("not_for_commandline"), 'read_write', 'append')
|
origin_prop = cmd_config.property.default('read_write', 'append')
|
||||||
|
cmd_config.property.setdefault(frozenset(origin_prop | {"not_for_commandline"}), 'read_write', 'append')
|
||||||
cmd_config.property.read_write()
|
cmd_config.property.read_write()
|
||||||
if RougailUserDataEnvironment:
|
if RougailUserDataEnvironment:
|
||||||
fake_rougail_config = {'step.user_data': 'environment',
|
fake_rougail_config = {'step.user_data': 'environment',
|
||||||
|
@ -51,6 +52,7 @@ def _main():
|
||||||
short_name_max_len=2,
|
short_name_max_len=2,
|
||||||
)
|
)
|
||||||
parser.parse_args()
|
parser.parse_args()
|
||||||
|
cmd_config.property.setdefault(origin_prop, 'read_write', 'append')
|
||||||
cmd_config.property.remove("not_for_commandline")
|
cmd_config.property.remove("not_for_commandline")
|
||||||
cmd_config.property.read_only()
|
cmd_config.property.read_only()
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue