Acloud: add help information for --verbose and --no-autoconnect
Test: m acloud & atest acloud_test && acloud create --help
Bug: 121987902
Change-Id: I9f75fc8e313f7f738f5a0013b16c957733be5df3
diff --git a/create/create_args.py b/create/create_args.py
index 45b97dc..abe5cb2 100644
--- a/create/create_args.py
+++ b/create/create_args.py
@@ -60,14 +60,16 @@
action="store_true",
dest="autoconnect",
required=False,
- help="For each instance created, we will automatically creates both 2 "
+ help="For each instance created, we will automatically create both 2 "
"ssh tunnels forwarding both adb & vnc. Then add the device to "
"adb.")
parser.add_argument(
"--no-autoconnect",
action="store_false",
dest="autoconnect",
- required=False)
+ required=False,
+ help="Will not automatically create ssh tunnels forwarding adb & vnc "
+ "when instance created.")
parser.set_defaults(autoconnect=True)
parser.add_argument(
"--report-internal-ip",
diff --git a/public/acloud_common.py b/public/acloud_common.py
index 32772e4..9c45be8 100755
--- a/public/acloud_common.py
+++ b/public/acloud_common.py
@@ -50,6 +50,8 @@
type=str,
default=None,
help="Path to log file.")
- parser.add_argument('--verbose', '-v',
+ parser.add_argument('--verbose', '-v', '-vv',
action='count',
- default=0)
+ default=0,
+ help="Enable verbose log. Use --verbose or -v for logging at INFO level,"
+ " and -vv for DEBUG level.")