Format "wcurl --help" output for 80 columns with correct indentation#87
Open
Format "wcurl --help" output for 80 columns with correct indentation#87
Conversation
Author
7a36a40 to
4dd1170
Compare
Author
|
I'll fix the remaining test ASAP (maybe Friday or Saturday morning). |
33a3af9 to
667c963
Compare
samueloph
reviewed
Feb 25, 2026
| { | ||
| cat << _EOF_ | ||
| ${PROGRAM_NAME} -- a simple wrapper around curl to easily download files. | ||
| Usage: wcurl [options...] <URL> |
Collaborator
There was a problem hiding this comment.
What's the idea behind this change?
I prefer the current format where it lists a few different ways of invoking wcurl while exposing which options can be used.
I know curl uses this format, but that makes more sense given the amount of option it has.
Author
There was a problem hiding this comment.
My reasoning when I did it:
- it was naturally longer than 80 columns so I wanted to keep it shorter / remove it
- at that time, I thought that the text would belong to
man wcurl(SYNPOSIS section) instead ofcurl --helpoutput (comparing withcurl --help,ls --help, etc. it seemed a bit surprising to have it there) - I thought that it was a repetition of the detailed options that were below
But, I see that adds some overview on how to use it.
What do you think if I try to re-introduce it with multiple line formatting, so the user would see something like:
${PROGRAM_NAME} [--curl-options <CURL_OPTIONS>]... [--no-decode-filename] \
[-o|-O|--output <PATH>] [--dry-run] [--] <URL>...
${PROGRAM_NAME} [--curl-options=<CURL_OPTIONS>]... [--no-decode-filename] \
[--output=<PATH>] [--dry-run] [--] <URL>...
${PROGRAM_NAME} -h|--help
${PROGRAM_NAME} -V|--version
Would it be confusing?
(I would also add -o|-O before the second --output=<PATH> as well, unless there is some reason that is not there)
Thank you!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.