fix: remove extra options in commandline parser

This commit is contained in:
egarette@silique.fr 2024-09-02 16:28:12 +02:00
parent 915e441af4
commit 73972b730a

View file

@ -8,12 +8,12 @@ from rougail.utils import load_modules
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.property.read_write()
cmd_config.property.add('not_for_commandline')
parser = TiramisuCmdlineParser(cmd_config,
add_no_option_to_boolean=False,
add_extra_options=False,
short_name_max_len=2,
)
parser.parse_args()