Skip to content
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

Document that only the last value of --output is used, add test for it #35

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

samueloph
Copy link
Member

No description provided.

Copy link
Collaborator

@sergiodj sergiodj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @samueloph.

There's just a very small nit, but otherwise LGTM. +1

tests/tests.sh Outdated
testOutputFileNameRepeatedOption()
{
url='example.com'
ret=$(${WCURL_CMD} -o "test filename" -o "test filename2" ${url} 2>&1)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ret=$(${WCURL_CMD} -o "test filename" -o "test filename2" ${url} 2>&1)
ret=$(${WCURL_CMD} -o "test filename" -o "test filename2" ${url} 2>&1)

@@ -76,7 +76,8 @@ Specify extra options to be passed when invoking curl. May be specified more tha
\fB\-o, \-O, \-\-output=\fI<PATH>\fR...\fR
Use the provided output path instead of getting it from the URL. If multiple
URLs are provided, all files will have the same name with a number appended to
the end (curl >= 7.83.0).
the end (curl >= 7.83.0). If this option is provided multiple times, only the
last value is considered.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a thought here: we now have to repeat these texts 3 times at least. It'd be great to have some kind of templating system.

Either way, I believe we can address this problem later, when we rewrite wcurl.

@samueloph samueloph force-pushed the samueloph/output_docs branch from 56c2f01 to 75a9254 Compare December 8, 2024 22:24
@samueloph samueloph merged commit 77e9fc7 into main Dec 8, 2024
1 check passed
@samueloph samueloph deleted the samueloph/output_docs branch December 8, 2024 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants