From: 9cel <9based@gmail.com> Date: Mon, 20 Jan 2025 10:35:42 +0000 (-0400) Subject: docs: document the behavior of -- in the curl command line X-Git-Tag: curl-8_12_0~79 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5a736f2c9e9e6f35f1cf61581f21ecee6f25885;p=thirdparty%2Fcurl.git docs: document the behavior of -- in the curl command line Closes #16053 --- diff --git a/docs/cmdline-opts/_OPTIONS.md b/docs/cmdline-opts/_OPTIONS.md index b6b75b3f34..c4493647a8 100644 --- a/docs/cmdline-opts/_OPTIONS.md +++ b/docs/cmdline-opts/_OPTIONS.md @@ -24,6 +24,10 @@ When --next is used, it resets the parser state and you start again with a clean option state, except for the options that are global. Global options retain their values and meaning even after --next. +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. + The following options are global: `%GLOBALS`. # ALL OPTIONS