From 075ee2156f12d909b343df43f8ee726f4810209c Mon Sep 17 00:00:00 2001 From: DevineLiu Date: Wed, 4 Jul 2018 16:33:17 +0800 Subject: [PATCH 1/2] repair argparse'sparents device should be included --- adb/adb_debug.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/adb/adb_debug.py b/adb/adb_debug.py index 18cb8ad..c0826b1 100644 --- a/adb/adb_debug.py +++ b/adb/adb_debug.py @@ -136,10 +136,9 @@ def main(): help='Seconds to wait for the dialog to be accepted when using ' 'authenticated ADB.') device = common_cli.GetDeviceArguments() - parents = [common, device] - + parents = [ device,common] parser = argparse.ArgumentParser( - description=sys.modules[__name__].__doc__, parents=[common]) + description=sys.modules[__name__].__doc__, parents=parents) subparsers = parser.add_subparsers(title='Commands', dest='command_name') subparser = subparsers.add_parser( From 47f3c2cee9c7ef0504b8ffa430896eb9a0bdab4e Mon Sep 17 00:00:00 2001 From: DevineLiu Date: Wed, 4 Jul 2018 16:37:52 +0800 Subject: [PATCH 2/2] Update adb_debug.py --- adb/adb_debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/adb_debug.py b/adb/adb_debug.py index c0826b1..526df87 100644 --- a/adb/adb_debug.py +++ b/adb/adb_debug.py @@ -136,7 +136,7 @@ def main(): help='Seconds to wait for the dialog to be accepted when using ' 'authenticated ADB.') device = common_cli.GetDeviceArguments() - parents = [ device,common] + parents = [ common,device] parser = argparse.ArgumentParser( description=sys.modules[__name__].__doc__, parents=parents) subparsers = parser.add_subparsers(title='Commands', dest='command_name')