Run nimscript without "nim e" (#11121)

Add a link to nimscript.rst
Add a suggestion on disabling hints.
This commit is contained in:
Federico Ceratto
2019-05-04 22:54:05 +01:00
committed by Andreas Rumpf
parent 90a7460d91
commit 70f5d7fc42

View File

@@ -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 <nimscript.html>`_.
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.