Skip to content

Commit 9a2ee0b

Browse files
authored
Merge pull request #1591 from JonasT/fixargparseerror
Fix --private and others showing weird error when used without argument
2 parents 2bb7285 + 8fe55aa commit 9a2ee0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/toolchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ def apk(self, args):
772772
if len(argx) > 1:
773773
unknown_args[i] = '='.join(
774774
(argx[0], realpath(expanduser(argx[1]))))
775-
else:
775+
elif i + 1 < len(unknown_args):
776776
unknown_args[i+1] = realpath(expanduser(unknown_args[i+1]))
777777

778778
env = os.environ.copy()

0 commit comments

Comments
 (0)