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
Add protocol information to CLI argument help string #252
Conversation
You can use proxy to do non-HTTP protocols too. --request works for at least FTP as well as HTTP, probably more too I can't remember off-hand. |
Ok, yes. It seems the changes in --proxy-* can be used for more than HTTP. How do you think about this? I could investigate some time to fix these points and make a pull request then. |
It sounds excellent. I would be useful to see how the --help output would look like when you run your code. Also, it could be an idea to actually include your script into the git repo so that we can generate future --help outputs that way once we agree on the results. |
My current output looks like this: https://bpaste.net/show/2ea7b5081e50 I'll then see that I will create a nice structure for the --help output! |
I would like to get more users to participate in this discussion but apparently it doesn't happen (here). I'll make a separate post to the curl-users list soon and see if I can attract some interest as the situation with the --help output comes up every now and then as something to improve. The problems I see with this separation is that you put each option under a single label while they work for more than one. For example lots of the options you now have under HTTP(S) also work for numerous other protocols. An idea: lets store a set of keywords for each command line option and introduce a new option that can output all options that are related to that keyword. Like "curl --help-list FTP" to get all the ones that work for FTP and "curl --help-list proxy" etc. Then the same option could be listed for several keywords. If that works decently, maybe the default -h/--help output could be stripped down to only show the most frequently used options and then refer to the --help-list method and the keywords as a way to list the rest? |
Yes, the idea of "--help-list" is worth to think about it. I just added myself to the curl-users mailing list. If you already wrote a message please give me a link to it. |
IMHO adding colours to the
|
My post and some replies can be found here: http://article.gmane.org/gmane.comp.web.curl.general/14780 |
I'd prefer comments/work to continue in the style as mentioned, unless other/better ways are brought forward. Closing this for now. |
No description provided.