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

docs: document the behavior of -- in the curl command line #16053

Closed
wants to merge 1 commit into from

Conversation

9cel
Copy link
Contributor

@9cel 9cel commented Jan 20, 2025

Prompted by a question asked in #curl on libera. This behavior seems to have been present since the very beginning of curl and is explained in a code comment, so I'm assuming it's deliberate and not subject to change. If it was intentionally left undocumented, feel free to just close this PR.

@emanuele6
Copy link
Contributor

The trurl man page has a paragraph that documents this

https://github.com/curl/trurl/blob/6b52fa5aea0e3bc5160b63172952d6792003fa98/trurl.md?plain=1#L55-L57

The first argument that is exactly two dashes (`--`), marks the end of
options; any argument after the end of options is interpreted as a URL
argument even if it starts with a dash.

Perhaps it would be better to just copy it from there so trurl and curl use the same wording?

@bagder
Copy link
Member

bagder commented Jan 20, 2025

Perhaps it would be better to just copy it from there so trurl and curl use the same wording?

Seems reasonable to me!

@9cel
Copy link
Contributor Author

9cel commented Jan 20, 2025

Changed it to match the trurl wording, but let it be known that my original version was the pinnacle of technical writing 😩

@bagder bagder closed this in c5a736f Jan 20, 2025
@bagder
Copy link
Member

bagder commented Jan 20, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants