diff options
author | Andreas Rottmann <a.rottmann@gmx.at> | 2010-11-20 01:05:10 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-11-20 01:11:23 +0100 |
commit | b710608c87f3a868921855d45c41f77b1f5c0dc2 (patch) | |
tree | 586088ed66b1632894d2e9da7bbf7f9001296985 /doc/ref/scheme-scripts.texi | |
parent | ec84b0a2514b7cf70ad6423ab0454b74ab639ef9 (diff) | |
download | guile-b710608c87f3a868921855d45c41f77b1f5c0dc2.tar.gz |
Allow specifying load extensions on the command line
Add a new command-line switch `-x', which manipulates the
%load-extensions list.
* libguile/script.c (scm_compile_shell_switches): Process the new "-x"
switch.
(scm_shell_usage): Mention the "-x" switch.
* doc/ref/scheme-scripts.texi (Invoking Guile): Add "-x" switch to the
list of command-line switches.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc/ref/scheme-scripts.texi')
-rw-r--r-- | doc/ref/scheme-scripts.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/ref/scheme-scripts.texi b/doc/ref/scheme-scripts.texi index 225b34b88..e30a9d738 100644 --- a/doc/ref/scheme-scripts.texi +++ b/doc/ref/scheme-scripts.texi @@ -116,6 +116,13 @@ and before any directories in the GUILE_LOAD_PATH environment variable. Paths added here are @emph{not} in effect during execution of the user's @file{.guile} file. +@item -x @var{extension} +Add @var{extension} to the front of Guile's load extension list +(@pxref{Loading, @code{%load-extensions}}). The specified extensions +are tried in the order given on the command line, and before the default +load extensions. Extensions added here are @emph{not} in effect during +execution of the user's @file{.guile} file. + @item -l @var{file} Load Scheme source code from @var{file}, and continue processing the command line. |