summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-01-22 00:33:49 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-01-22 00:33:49 -0800
commit97865d48b22fd96e75ca216e2dd67850b1c84b2a (patch)
tree6531106a41c4a31bdb2defb8c39f4f320d96e44f /txr.1
parenta229461d0aff75401d3164c286a5f0960238199e (diff)
downloadtxr-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.110
1 files changed, 10 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 49333855..b43630fa 100644
--- a/txr.1
+++ b/txr.1
@@ -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.