jb2170 / better-adb-sync

Completely rewritten adbsync with --exclude
Apache License 2.0
344 stars 22 forks source link

cannot use args like --exclude or --show-progress #33

Closed ezzra closed 1 year ago

ezzra commented 1 year ago

I am getting these errors with adbsync 1.3.2:

$ adbsync pull /sdcard/DCIM . --show-progress
usage: adbsync [-h] [--version] [--no-color] [-v | -q] [-n] [-L] [--exclude EXCLUDE] [--exclude-from EXCLUDE_FROM] [--del] [--delete-excluded] [--force] [--show-progress] [--adb-encoding ADB_ENCODING] [--adb-bin ADB_BIN]
               [--adb-flag ADB_FLAG] [--adb-option OPTION VALUE]
               {push,pull} ...
adbsync: error: unrecognized arguments: --show-progress
$ adbsync pull /sdcard/* . --exclude Android
usage: adbsync [-h] [--version] [--no-color] [-v | -q] [-n] [-L] [--exclude EXCLUDE] [--exclude-from EXCLUDE_FROM] [--del] [--delete-excluded] [--force] [--show-progress] [--adb-encoding ADB_ENCODING] [--adb-bin ADB_BIN]
               [--adb-flag ADB_FLAG] [--adb-option OPTION VALUE]
               {push,pull} ...
adbsync: error: unrecognized arguments: --exclude Android
jb2170 commented 1 year ago

The options like --exclude have to come before the paths, that's how Python's argparse library parses them