]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs: document the behavior of -- in the curl command line
author9cel <9based@gmail.com>
Mon, 20 Jan 2025 10:35:42 +0000 (06:35 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 20 Jan 2025 13:27:05 +0000 (14:27 +0100)
Closes #16053

docs/cmdline-opts/_OPTIONS.md

index b6b75b3f345e3de0002eb4a852beea26709dd62f..c4493647a8a9f4561007f6a7ad0c1f0c576a398a 100644 (file)
@@ -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