Using curl 7.21.7 (i386-pc-win32)
In the usage summary (--help), option “-J/--remote-header-name” looks like it's out of order: its placement is based on its abbreviated equivalent “-J”, while all other options in the list are sorted on their full option name.
Instead, “-J/--remote-header-name” should appear just before “-O/--remote-name”.
Thanks.
Thanks for the report, this problem is now fixed in the git repository.
To try it out, you either checkout/update your git clone: http://curl.haxx.se/source.html
or you try tomorrow's daily snapshot: http://curl.haxx.se/snapshots/