[Commit] nickle/doc/tutorial/basics invoke.sgml,1.1,1.2
Bart Massey
commit at keithp.com
Tue Aug 2 21:42:57 PDT 2005
- Previous message: [Commit] nickle ChangeLog,1.131,1.132 nickle.1.in,1.19,1.20
- Next message: [Commit] nickle ChangeLog, 1.132, 1.133 builtin-string.c, 1.11,
1.12 file.c, 1.67, 1.68 lex.l, 1.82, 1.83 rational.c, 1.30, 1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: bart
Update of /local/src/CVS/nickle/doc/tutorial/basics
In directory home.keithp.com:/tmp/cvs-serv2341/doc/tutorial/basics
Modified Files:
invoke.sgml
Log Message:
2005-08-02 Bart Massey <bart at cs.pdx.edu>
* doc/tutorial/basics/invoke.sgml, nickle.1.in:
Fix documentation to reflect new argument parsing.
Index: invoke.sgml
===================================================================
RCS file: /local/src/CVS/nickle/doc/tutorial/basics/invoke.sgml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- invoke.sgml 23 May 2003 23:48:59 -0000 1.1
+++ invoke.sgml 3 Aug 2005 04:42:53 -0000 1.2
@@ -6,14 +6,15 @@
<arg>-l <replaceable>file</replaceable></arg>
<arg>-e <replaceable>expr</replaceable></arg>
<arg><replaceable>script</replaceable></arg>
+<arg>--</arg>
+<arg><replaceable>arg ...</replaceable></arg>
</cmdsynopsis>
<variablelist>
<varlistentry><term><literal>-f</literal></term>
<listitem><para>
-Evaluate <replaceable>file</replaceable> first.
-In addition, Nickle usually loads a <literal>.nicklerc</literal> file.
+Evaluate <replaceable>file</replaceable>.
</para></listitem>
</varlistentry>
@@ -26,7 +27,7 @@
<varlistentry><term><literal>-e</literal></term>
<listitem>
<para>
-Stop processing arguments and evaluate the rest of the line as a Nickle expression, print its value, and quit, e.g.
+Evaluate a Nickle expression, e.g.
</para>
<informalexample><screen>
$ nickle -e 3**4
@@ -39,6 +40,8 @@
<varlistentry><term><literal>script</literal></term>
<listitem><para>
If Nickle encounters an unflagged argument, it assumes it to be the name of a script, which it runs.
+If a <literal>.nicklerc</literal> file is available, it will
+be evaluated first.
No more arguments are processed; the rest of the line is given to the script as its arguments.
</para></listitem>
</varlistentry>
@@ -46,7 +49,7 @@
</variablelist>
<para>
-Without <literal>-e</literal> or a script as arguments, Nickle runs interactively, accepting standard input and writing to standard output.
+Without <literal>-e</literal> or a script as an argument, Nickle runs interactively, accepting standard input and writing to standard output.
</para>
</sect1>
- Previous message: [Commit] nickle ChangeLog,1.131,1.132 nickle.1.in,1.19,1.20
- Next message: [Commit] nickle ChangeLog, 1.132, 1.133 builtin-string.c, 1.11,
1.12 file.c, 1.67, 1.68 lex.l, 1.82, 1.83 rational.c, 1.30, 1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commit
mailing list