Skip to content

Commit 438f86b

Browse files
committed
Fix cli dropping extra args
Fixes google#6
1 parent 651253f commit 438f86b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

adb/common_cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ def StartCli(argv, device_callback, kwarg_callback=None, list_callback=None,
128128
method = getattr(dev, method_name)
129129
argspec = inspect.getargspec(method)
130130
num_args = len(argspec.args) - 1 # self is the first one.
131-
num_args -= len(argspec.defaults or [])
132131
# Handle putting the remaining command line args into the last normal arg.
133132
argv.pop(0)
134133

0 commit comments

Comments
 (0)