aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/os.texi10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index 92684c8993e..97b8b532fea 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -613,7 +613,7 @@ The elements of the @code{command-switch-alist} look like this:
613@end example 613@end example
614 614
615The @sc{car}, @var{option}, is a string, the name of a command-line 615The @sc{car}, @var{option}, is a string, the name of a command-line
616option (not including the initial hyphen). The @var{handler-function} 616option (including the initial hyphen). The @var{handler-function}
617is called to handle @var{option}, and receives the option name as its 617is called to handle @var{option}, and receives the option name as its
618sole argument. 618sole argument.
619 619
@@ -623,6 +623,14 @@ remaining command-line arguments in the variable
623@code{command-line-args-left} (see below). (The entire list of 623@code{command-line-args-left} (see below). (The entire list of
624command-line arguments is in @code{command-line-args}.) 624command-line arguments is in @code{command-line-args}.)
625 625
626Note that the handling of @code{command-switch-alist} doesn't treat
627equals signs in @var{option} specially. That is, if there's an option
628like @code{--name=value} on the command line, then only a
629@code{command-switch-alist} member whose @code{car} is literally
630@code{--name=value} will match this option. If you want to parse such
631options, you need to use @code{command-line-functions} instead (see
632below).
633
626The command-line arguments are parsed by the @code{command-line-1} 634The command-line arguments are parsed by the @code{command-line-1}
627function in the @file{startup.el} file. See also @ref{Emacs 635function in the @file{startup.el} file. See also @ref{Emacs
628Invocation, , Command Line Arguments for Emacs Invocation, emacs, The 636Invocation, , Command Line Arguments for Emacs Invocation, emacs, The