From 7e5eaaa80706899ea7534bd718de54bc363f381c Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Mon, 12 Oct 2009 16:43:55 +0100
Subject: [PATCH] cli: add SHUTDOWN_TIMEOUT_OPT

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 lib/cli.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/cli.py b/lib/cli.py
index 292cab08f..f79738118 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -103,6 +103,7 @@ __all__ = [
   "SELECT_OS_OPT",
   "SEP_OPT",
   "SHOWCMD_OPT",
+  "SHUTDOWN_TIMEOUT_OPT",
   "SINGLE_NODE_OPT",
   "SRC_DIR_OPT",
   "SRC_NODE_OPT",
@@ -820,6 +821,11 @@ TIMEOUT_OPT = cli_option("--timeout", dest="timeout", type="int",
                          default=constants.DEFAULT_SHUTDOWN_TIMEOUT,
                          help="Maximum time to wait")
 
+SHUTDOWN_TIMEOUT_OPT = cli_option("--shutdown-timeout", dest="timeout",
+                         type="int",
+                         default=constants.DEFAULT_SHUTDOWN_TIMEOUT,
+                         help="Maximum time to wait for instance shutdown")
+
 
 def _ParseArgs(argv, commands, aliases):
   """Parser for the command line arguments.
-- 
GitLab