lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.08k stars 159 forks source link

Misleading documentation or behavior for get -P #708

Open fi5er opened 11 months ago

fi5er commented 11 months ago

The man page section for get currently reads:

get [-E] [-a] [-c] [-e] [-P N] [-O base] rfile [-o lfile] ...
(...)
-P N        download N files in parallel

However, get does not accept a value for N. Concurrent downloads work (the limit might be taken from net:connection-limit instead), but attempting to provide a limit like -P 4 will see "4" as a file name. mget -P, on the other hand, does require a number for N.

I'm not sure if this is intentional and just a documentation issue, or if both commands should accept a specified limit. It's also possible that put and mput have a similar problem, but I can't test this due to lack of write permissions on the server.

Closely related: the -P option is completely missing from the online help for get, mget, put, and mput in src/commands.cc.