-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
«--no-remote-name» does not work #10564
Comments
Reported-by: u20221022 on github Fixes #10564
I see nothing in the man page that says |
Repeat (with some extension) the case № 0: Remove «--no-remote-name» from manual, if it is wrong.
Sorry, I do not understand your English. Who is not complain? |
I think the use case 1 and 4 are very strange so I even though the warnings are a little odd, I don't even know what the right action would be. |
I'd just error-out if someone gives multiple options for the output file name. |
Recently, many errors have been found in the behavior of options. Therefore, I just reinsure myself by explicitly indicating all negative options. Do you remember the three states of the binary option: «--clobber», «--no-clobber» and «» (i.e. without option)? Update. Case №5 («--remote-name-all» in case №4 is changed to «--NO-remote-name-all»): |
Unless --remote-name-all is used. Fixes #10564 Reported-by: u20221022 on github
Unless --remote-name-all is used. Fixes curl#10564 Reported-by: u20221022 on github Closes curl#10582
I did this
curl.exe --manual | FindStr /C:"or --no-remote-name" /N
3957: all has been used, you must use "-o -" or --no-remote-name.
curl.exe --head --output "head.txt" --no-remote-name "https://www.autohotkey.com/download/ahk-install.exe"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 3269k 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
Warning: Got more output options than URLs
curl.exe --head --output "head.txt" --remote-name "https://www.autohotkey.com/download/ahk-install.exe"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 3269k 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
Warning: Got more output options than URLs
curl.exe --head --output "head.txt" "https://www.autohotkey.com/download/ahk-install.exe"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 3269k 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
curl.exe --head --output "head.txt" --remote-name-all --no-remote-name "https://www.autohotkey.com/download/ahk-install.exe"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 3269k 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
Warning: Got more output options than URLs
I expected the following
a) The capital letter «O» in case №0 («-O, --remote-name», not «-o, --output <file>»).
b) The same but without warnings in cases №1 and №4.
curl/libcurl version
7.88.0
[curl -V output]
curl 7.88.0 (x86_64-w64-mingw32) libcurl/7.88.0 OpenSSL/3.0.8 (Schannel) zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 WinIDN libssh2/1.10.0 nghttp2/1.52.0 ngtcp2/0.13.1 nghttp3/0.8.0 libgsasl/2.2.0
Release-Date: 2023-02-15
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli gsasl HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL SSPI threadsafe TLS-SRP UnixSockets zstd
operating system
MS Windows 10
The text was updated successfully, but these errors were encountered: