diff --git a/odoo_openupgrade_wizard/cli/cli_run.py b/odoo_openupgrade_wizard/cli/cli_run.py index b2858fb..8c507a6 100644 --- a/odoo_openupgrade_wizard/cli/cli_run.py +++ b/odoo_openupgrade_wizard/cli/cli_run.py @@ -29,6 +29,12 @@ from odoo_openupgrade_wizard.tools.tools_postgres import ensure_database type=str, help="List of modules to install. Equivalent to -i odoo options.", ) +@click.option( + "-u", + "--update-modules", + type=str, + help="List of modules to update. Equivalent to -u odoo options.", +) @click.option( "-e", "--execution-context", @@ -45,6 +51,7 @@ def run( with_demo, stop_after_init, init_modules, + update_modules, execution_context, ): migration_step = get_migration_step_from_options(ctx, step) @@ -56,6 +63,7 @@ def run( database=database, detached_container=not stop_after_init, init=init_modules, + update=update_modules, stop_after_init=stop_after_init, demo=with_demo, execution_context=execution_context,