Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(693)

Unified Diff: devil/devil/android/tools/keyboard.py

Issue 2923443002: [devil] Add system app replacement wrapper script. (Closed)
Patch Set: docstrings for device_temp_file Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « devil/devil/android/tools/flash_device.py ('k') | devil/devil/android/tools/provision_devices.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devil/devil/android/tools/keyboard.py
diff --git a/devil/devil/android/tools/keyboard.py b/devil/devil/android/tools/keyboard.py
index 31daf59edbf58b746fc93b77c341ef88310627e6..3a74692680c3062fd8558f5f504e1486664bc552 100755
--- a/devil/devil/android/tools/keyboard.py
+++ b/devil/devil/android/tools/keyboard.py
@@ -80,12 +80,6 @@ def Keyboard(device, stream_itr):
pass
-def AddArguments(parser):
- parser.add_argument('-d', '--device', action='append', dest='devices',
- metavar='DEVICE', help='device serial')
- parser.add_argument('-v', '--verbose', action='count', help='print more')
-
-
class MultipleDevicesError(base_error.BaseError):
def __init__(self, devices):
super(MultipleDevicesError, self).__init__(
@@ -95,7 +89,8 @@ class MultipleDevicesError(base_error.BaseError):
def main(raw_args):
parser = argparse.ArgumentParser(
description="Use your keyboard as your phone's keyboard.")
- AddArguments(parser)
+ script_common.AddDeviceArguments(parser)
+ parser.add_argument('-v', '--verbose', action='count', help='print more')
args = parser.parse_args(raw_args)
run_tests_helper.SetLogLevel(args.verbose)
« no previous file with comments | « devil/devil/android/tools/flash_device.py ('k') | devil/devil/android/tools/provision_devices.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698