android-file-transfer-linux icon indicating copy to clipboard operation
android-file-transfer-linux copied to clipboard

No man pages

Open clancyj4 opened this issue 4 years ago • 3 comments

...or documentation on commands.

clancyj4 avatar Mar 03 '20 17:03 clancyj4

all PRs are welcomed! :heart:

whoozle avatar Mar 04 '20 17:03 whoozle

to be honest, most of the options are pretty much straightforward, try --help

aft-mtp-cli --help

usage:
-h      --help          show this help
-v      --verbose       show debug output
-i      --interactive   force interactive mode
-b      --batch         batch command processing
-e      --events        allow event processing
-f      --input-file    use file to read input commands
-C      --no-claim      no usb interface claim
-R      --reset-device  reset usb device before connecting
-V      --version       show version information

It can parse and execute commands passed as arguments, e.g. "cp \"a\" \"b\"" "rm \"a\"

qt UI don't get any options

whoozle avatar Mar 04 '20 22:03 whoozle

interactive == true when input is TTY, or you can force it with -i batch allows you to run cli tool without prompt in case you're parsing its input/output. claim interface is USB specific thing, OS-level exclusive locking of the interface. Some devices/OSes combination don't work with it well, so you may want to skip it. reset device is USB reset, normally it's destructive and may interfer with kernel/driver device state, so it's safer to disable it. events outputs different type of events starting with character '#', for scripting purposes as well.

whoozle avatar Mar 04 '20 22:03 whoozle