From 03b7f70873cc7a3401e9b526d97c1812eefe8bdd Mon Sep 17 00:00:00 2001 From: Shawn Wallace Date: Thu, 17 Apr 2025 12:00:20 -0400 Subject: [PATCH] Document built in command switch behavior --- doc/pages/commands.asciidoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/pages/commands.asciidoc b/doc/pages/commands.asciidoc index 6b5a48e57c..e386ed619d 100644 --- a/doc/pages/commands.asciidoc +++ b/doc/pages/commands.asciidoc @@ -4,6 +4,11 @@ Some commands take an exclamation mark (*!*), which can be used to force the execution of the command (i.e. to quit a modified buffer, the command *q!* has to be used). Aliases are mentioned below each command. +For all commands that accept switches, a parameter beginning with +a single dash (*-*) will be interpreted as a switch. Any unknown switches +will cause an error. To force the remaining parameters to not be interpreted as +switches even if they begin with a dash, you can pass two dashes (*--*) as a parameter. + *doc* :: *alias* help + display documentation about a topic. The completion list displays the