Nscript REPL and CLI arguments
Michel Weststrate edited this page Feb 16, 2015
·
2 revisions
The following arguments can be passed to the nscript
script.
-
nscript
: starts annscript
REPL, this is very useful for testing. (It is very similar to runningnode
). Allshell
operations will be directly available on the command line. -
nscript [filename]
will execut the specified script atfilename
and quite. -
-h
or--help
will print the help. -
-V
or--version
will print the currently installed version ofnscript
-
-v
or--verbose
will explain in great detail which commandnscript
is executing during a script run. Similar to calllingshell.verbose(true)
inside the script. -
-C [path]
or--chdir [path]
will change the working directory of the script before starting. Similar to callshell.cd("path")
inside the script. -
--touch [path]
create a newnscript
file at the specified location and make it executable -
-x <path>
make sure the nscript file at the specified location is executable. On unix,chmod +x
will be used, in windows a similarly named.bat
file will be created. -
--local
in combination with --touch or -x; do not use global nscript, but the one provided in the embedding npm package