diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-10 07:24:11 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-10 07:24:11 +0800 |
commit | d1e04f7388ec29b009d646e20570393a5851f54d (patch) | |
tree | 8f81e847226a436b249052fb387c4575a7d87ef2 | |
parent | 487f68ec4892794cb994cffd95d5bc2bf3052d3e (diff) | |
download | go-tangerine-d1e04f7388ec29b009d646e20570393a5851f54d.tar go-tangerine-d1e04f7388ec29b009d646e20570393a5851f54d.tar.gz go-tangerine-d1e04f7388ec29b009d646e20570393a5851f54d.tar.bz2 go-tangerine-d1e04f7388ec29b009d646e20570393a5851f54d.tar.lz go-tangerine-d1e04f7388ec29b009d646e20570393a5851f54d.tar.xz go-tangerine-d1e04f7388ec29b009d646e20570393a5851f54d.tar.zst go-tangerine-d1e04f7388ec29b009d646e20570393a5851f54d.zip |
cmd/ethereum: allow multiple js files
-rw-r--r-- | cmd/ethereum/main.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go index 1ae8e46a2..d0edef81d 100644 --- a/cmd/ethereum/main.go +++ b/cmd/ethereum/main.go @@ -159,13 +159,13 @@ func runjs(ctx *cli.Context) { startEth(ctx, eth) if len(ctx.Args()) == 0 { runREPL(eth) - eth.Stop() - eth.WaitForShutdown() - } else if len(ctx.Args()) == 1 { - execJsFile(eth, ctx.Args()[0]) } else { - utils.Fatalf("This command can handle at most one argument.") + for _, file := range ctx.Args() { + execJsFile(eth, file) + } } + eth.Stop() + eth.WaitForShutdown() } func startEth(ctx *cli.Context, eth *eth.Ethereum) { |