From 4affec20c0b8ef024938339c16dc75077dcb0cd4 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Thu, 2 Jun 2016 22:03:18 -0400 Subject: [PATCH] man: nit.md documents `-` Signed-off-by: Jean Privat --- share/man/nit.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/man/nit.md b/share/man/nit.md index 9503883..fcdec6c 100644 --- a/share/man/nit.md +++ b/share/man/nit.md @@ -6,6 +6,8 @@ nit - interprets and debugs Nit programs. nit [*options*] FILE [ARG]... +nit [*options*] - [ARG]... + nit [*options*] -e COMMAND [ARG]... # DESCRIPTION @@ -16,6 +18,9 @@ It takes the main module of a program as the first argument then the options and $ nit examples/hello_world.nit hello world +If `-` is used instead of a module, then the program is read from the standard input. +The whole program is read before its interpretation starts. + The Nit interpreter is usable and valid as a *shebang* interpreted directive. It is however recommended to use with `/usr/bin/env` because the location of the executable is not standardized. -- 1.7.9.5