Here's another good idea coming from the #curl user survey:

Support "curl -h --insecure" etc to output the manpage section for the --insecure command line option in the terminal. Should be possible to work with either long or short versions of command line options.

github.com/curl/curl/pull/1399…

Open for grabs!

#curl
in reply to daniel:// stenberg://

aaaand here's a draft implementation:

github.com/curl/curl/pull/1399…

in reply to daniel:// stenberg://

Nice!

Did you consider adding a help command instead of an option? The option --help now is playing an active role to help the user, but does not influence an actual HTTP request

For Lynis I created a helper "show help", that well, shows help. Without any command, it will give the output as in the screenshot.

Crazy idea: create helper that allows fuzzy search. So "curl help head" will report about --head, but also the relevant lines about doing a HEAD request.

in reply to daniel:// stenberg://

It makes sense, at the same time confuses me a bit. When I use two options with a program, I expect them to fine-tune the action it is about to take. Like --head --verbose will change the request type from GET to HEAD, yet gives me more verbose output. That makes sense. While -h is not influencing the actual HTTP request or behavior, but instead a hard interrupt to show information. Not what I would expect if I would see the command written on a blog post, for example.