Commit d1e04f73 authored by Felix Lange's avatar Felix Lange

cmd/ethereum: allow multiple js files

parent 487f68ec
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment