Skip to content

Commit

Permalink
Update compiler usage message for STDIN eval
Browse files Browse the repository at this point in the history
Since recently-ish, if STDIN is not a TTY, we've treated STDIN
as simply a file with code to eval, without starting REPL.
  • Loading branch information
zoffixznet committed Oct 7, 2017
1 parent 9ce896d commit 2051845
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Perl6/Compiler.nqp
Expand Up @@ -86,9 +86,9 @@ class Perl6::Compiler is HLL::Compiler {
my $print-func := $use-stderr ?? &note !! &say; # RT #130760
$print-func(($name ?? $name !! "") ~ " [switches] [--] [programfile] [arguments]
With no arguments, enters a REPL. With a \"[programfile]\" or the \"-e\"
option, compiles the given program and, by default, also executes the
compiled code.
With no arguments, enters a REPL on TTY displays or evals STDIN on non-TTY.
With a \"[programfile]\" or the \"-e\" option, compiles the given program
and, by default, also executes the compiled code.
-c check syntax only (runs BEGIN and CHECK blocks)
--doc extract documentation and print it as text
Expand Down

0 comments on commit 2051845

Please sign in to comment.