fix: remove extra options in commandline parser
This commit is contained in:
parent
915e441af4
commit
73972b730a
1 changed files with 2 additions and 2 deletions
|
@ -8,12 +8,12 @@ from rougail.utils import load_modules
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
rougailconfig = get_rougail_config(backward_compatibility=False)
|
rougailconfig = get_rougail_config(backward_compatibility=False, add_extra_options=False)
|
||||||
cmd_config = rougailconfig.config
|
cmd_config = rougailconfig.config
|
||||||
cmd_config.property.read_write()
|
cmd_config.property.read_write()
|
||||||
cmd_config.property.add('not_for_commandline')
|
cmd_config.property.add('not_for_commandline')
|
||||||
parser = TiramisuCmdlineParser(cmd_config,
|
parser = TiramisuCmdlineParser(cmd_config,
|
||||||
add_no_option_to_boolean=False,
|
add_extra_options=False,
|
||||||
short_name_max_len=2,
|
short_name_max_len=2,
|
||||||
)
|
)
|
||||||
parser.parse_args()
|
parser.parse_args()
|
||||||
|
|
Loading…
Reference in a new issue