Variable: command-line-args

command-line-args is a variable defined in emacs.c.

Value

("emacs" "-l" "elisp-doc-main" "shards=4/12")

Documentation

Args passed by shell to Emacs, as a list of strings.

Many arguments are deleted from the list as they are processed.

View in manual

Probably introduced at or before Emacs version 17.

Source Code

// Defined in /usr/src/emacs/src/emacs.c
  DEFVAR_LISP ("command-line-args", Vcommand_line_args,
	       doc: /* Args passed by shell to Emacs, as a list of strings.
Many arguments are deleted from the list as they are processed.  */);