diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-01-22 00:33:49 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-01-22 00:33:49 -0800 |
commit | 97865d48b22fd96e75ca216e2dd67850b1c84b2a (patch) | |
tree | 6531106a41c4a31bdb2defb8c39f4f320d96e44f /txr.1 | |
parent | a229461d0aff75401d3164c286a5f0960238199e (diff) | |
download | txr-97865d48b22fd96e75ca216e2dd67850b1c84b2a.tar.gz txr-97865d48b22fd96e75ca216e2dd67850b1c84b2a.tar.bz2 txr-97865d48b22fd96e75ca216e2dd67850b1c84b2a.zip |
* eval.c (eval_instrinsic): Changed to external linkage.
* eval.h (eval_intrinsic): Declared.
* txr.c (spec_file): Global variable removed.
(txr_main): Support for -e and -p options. Minor code cleanup.
* txr.1: Documented new options.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -182,6 +182,16 @@ Specifies the file from which the query is to be read, instead of the query-file argument. This is useful in #! scripts. (See Hash Bang Support below). +.IP "-e expression" +Evaluates a TXR Lisp expression for its side effects, without printing +its value. Can be specified more than once. The query-file argument becomes +optional if -e is used at least once. + +.IP "-p expression" +Evaluates a TXR Lisp expression and prints its value. Can be specified more +than once. The query-file argument becomes optional if -p is used at least +once. + .IP --help Prints usage summary on standard output, and terminates successfully. |