diff --git a/lib/cli.py b/lib/cli.py index 2d6e7f74a0e02ad18dd9065141beada3a60bbb11..b864527906bad17faffe8bf83e05e2e0b26e4daa 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -111,6 +111,7 @@ __all__ = [ "STATIC_OPT", "SYNC_OPT", "TAG_SRC_OPT", + "TIMEOUT_OPT", "USEUNITS_OPT", "VERBOSE_OPT", "VG_NAME_OPT", @@ -816,6 +817,9 @@ NOSHUTDOWN_OPT = cli_option("","--noshutdown", dest="shutdown", action="store_false", default=True, help="Don't shutdown the instance (unsafe)") +TIMEOUT_OPT = cli_option("--timeout", dest="timeout", type="int", + default=constants.DEFAULT_SHUTDOWN_TIMEOUT, + help="Maximum time to wait") def _ParseArgs(argv, commands, aliases):