Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rename --force-stdin-eval-mode command line opt
To `--repl-mode`
  • Loading branch information
zoffixznet committed Oct 7, 2017
1 parent c38cfe8 commit 943f7f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/HLL/Compiler.nqp
Expand Up @@ -23,7 +23,7 @@ class HLL::Compiler does HLL::Backend::Default {
@!stages := nqp::split(' ', 'start parse ast ' ~ $!backend.stages());

# Command options and usage.
@!cmdoptions := nqp::split(' ', 'e=s help|h target=s trace|t=s encoding=s output|o=s source-name=s combine version|v show-config verbose-config|V stagestats=s? ll-exception rxtrace nqpevent=s profile=s? profile-compile=s? profile-filename=s profile-stage=s force-stdin-eval-mode=s'
@!cmdoptions := nqp::split(' ', 'e=s help|h target=s trace|t=s encoding=s output|o=s source-name=s combine version|v show-config verbose-config|V stagestats=s? ll-exception rxtrace nqpevent=s profile=s? profile-compile=s? profile-filename=s profile-stage=s repl-mode=s'
#?if js
~ ' substagestats beautify nqp-runtime=s perl6-runtime=s libpath=s shebang execname=s source-map'
#?endif
Expand Down Expand Up @@ -300,12 +300,12 @@ class HLL::Compiler does HLL::Backend::Default {
elsif !@a {
# Is STDIN a TTY display? If so, start the REPL, otherwise, simply
# assume the program to eval is given on STDIN.
my $force := %adverbs<force-stdin-eval-mode>//'';
my $force := %adverbs<repl-mode>//'';
my $wants-interactive := $force
?? $force eq 'interactive'
?? 1 !! $force eq 'non-interactive'
?? 0 !! self.panic(
"Unknown STDIN eval mode '$force'. Valid values"
"Unknown REPL mode '$force'. Valid values"
~ " are 'non-interactive' and 'interactive'"
)
!! stdin().t();
Expand Down

0 comments on commit 943f7f7

Please sign in to comment.