|
|
@ -159,13 +159,13 @@ func runjs(ctx *cli.Context) { |
|
|
|
startEth(ctx, eth) |
|
|
|
startEth(ctx, eth) |
|
|
|
if len(ctx.Args()) == 0 { |
|
|
|
if len(ctx.Args()) == 0 { |
|
|
|
runREPL(eth) |
|
|
|
runREPL(eth) |
|
|
|
eth.Stop() |
|
|
|
|
|
|
|
eth.WaitForShutdown() |
|
|
|
|
|
|
|
} else if len(ctx.Args()) == 1 { |
|
|
|
|
|
|
|
execJsFile(eth, ctx.Args()[0]) |
|
|
|
|
|
|
|
} else { |
|
|
|
} 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) { |
|
|
|
func startEth(ctx *cli.Context, eth *eth.Ethereum) { |
|
|
|