File: invoke.adoc

package info (click to toggle)
nickle 2.107
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 3,756 kB
  • sloc: ansic: 27,954; yacc: 1,874; lex: 954; sh: 204; makefile: 13; lisp: 1
file content (31 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
= Invocation

[verse]
`nickle`
   `-f` _file_
   `-l` _file_
   `-e` _expr_
   _script_ _arg_ ...

`-f` _file_::
Evaluate _file_. 

`-l` _file_::
Evaluate _file_ like `-f`, but expect it to be in `$NICKLEPATH`. 

`-e`::
Evaluate a Nickle expression, e.g. 
+
----
$ nickle -e 3**4
81
$
----

`script`::
If Nickle encounters an unflagged argument, it assumes it to be the name of a script, which it runs.
If a `.nicklerc` 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. 

Without `-e` or a script as an argument, Nickle runs interactively,
accepting standard input and writing to standard output.