aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/ethereum/main.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-03-24 22:09:06 +0800
committerzelig <viktor.tron@gmail.com>2015-03-27 03:00:18 +0800
commit1c4c71dcff442e3ae30e510fef312d3c05341f30 (patch)
tree11ac27da8c937cd372d5c811442281fea4accd2d /cmd/ethereum/main.go
parentfd8d18ec280c3fe2c3d2651870c31c65b02039ba (diff)
downloadgo-tangerine-1c4c71dcff442e3ae30e510fef312d3c05341f30.tar
go-tangerine-1c4c71dcff442e3ae30e510fef312d3c05341f30.tar.gz
go-tangerine-1c4c71dcff442e3ae30e510fef312d3c05341f30.tar.bz2
go-tangerine-1c4c71dcff442e3ae30e510fef312d3c05341f30.tar.lz
go-tangerine-1c4c71dcff442e3ae30e510fef312d3c05341f30.tar.xz
go-tangerine-1c4c71dcff442e3ae30e510fef312d3c05341f30.tar.zst
go-tangerine-1c4c71dcff442e3ae30e510fef312d3c05341f30.zip
cli: fix liner not closing (spuriously opened) in noninteractive jsre
Diffstat (limited to 'cmd/ethereum/main.go')
-rw-r--r--cmd/ethereum/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go
index fea3fbf61..59c6ef485 100644
--- a/cmd/ethereum/main.go
+++ b/cmd/ethereum/main.go
@@ -246,7 +246,7 @@ func console(ctx *cli.Context) {
}
startEth(ctx, ethereum)
- repl := newJSRE(ethereum, ctx.String(utils.JSpathFlag.Name))
+ repl := newJSRE(ethereum, ctx.String(utils.JSpathFlag.Name), true)
repl.interactive()
ethereum.Stop()
@@ -261,7 +261,7 @@ func execJSFiles(ctx *cli.Context) {
}
startEth(ctx, ethereum)
- repl := newJSRE(ethereum, ctx.String(utils.JSpathFlag.Name))
+ repl := newJSRE(ethereum, ctx.String(utils.JSpathFlag.Name), false)
for _, file := range ctx.Args() {
repl.exec(file)
}