From 70f5d7fc426b182bffca6fa783f40f22357324ef Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Sat, 4 May 2019 22:54:05 +0100 Subject: Run nimscript without "nim e" (#11121) Add a link to nimscript.rst Add a suggestion on disabling hints. --- doc/nims.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/nims.rst b/doc/nims.rst index eaf20a6db..3f14f8f41 100644 --- a/doc/nims.rst +++ b/doc/nims.rst @@ -26,6 +26,8 @@ previous settings): ``$project.nim``. This file can be skipped with the same ``--skipProjCfg`` command line option. +For available procs and implementation details see `nimscript `_. + Limitations ================================= @@ -134,7 +136,7 @@ Standalone NimScript ==================== NimScript can also be used directly as a portable replacement for Bash and -Batch files. Use ``nim e myscript.nims`` to run ``myscript.nims``. For example, +Batch files. Use ``nim myscript.nims`` to run ``myscript.nims``. For example, installation of Nimble could be accomplished with this simple script: .. code-block:: nim @@ -161,3 +163,5 @@ ends with ``.nims``: mode = ScriptMode.Silent echo "hello world" + +Use ``#!/usr/bin/env -S nim --hints:off`` to disable hints. -- cgit 1.4.1-2-gfad0