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!
TODO: -h option by bagder · Pull Request #13990 · curl/curl
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 ...GitHub
Mark Eichin
in reply to daniel:// stenberg:// • • •Tim Bray
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to daniel:// stenberg:// • • •aaaand here's a draft implementation:
github.com/curl/curl/pull/1399…
curl: --help [option] displays documentation for given cmdline option by bagder · Pull Request #13997 · curl/curl
GitHubMichael Boelen
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.
daniel:// stenberg://
in reply to Michael Boelen • • •No, a separate command would lose a lot of the benefit I think because this provides help for the command you obviously already have.
Fuzzy or crazy search is better left for the actual manpage or at least separate work.
Michael Boelen
in reply to daniel:// stenberg:// • • •