From c5a736f2c9e9e6f35f1cf61581f21ecee6f25885 Mon Sep 17 00:00:00 2001 From: 9cel <9based@gmail.com> Date: Mon, 20 Jan 2025 06:35:42 -0400 Subject: [PATCH] docs: document the behavior of -- in the curl command line Closes #16053 --- docs/cmdline-opts/_OPTIONS.md | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.3