From d1e04f7388ec29b009d646e20570393a5851f54d Mon Sep 17 00:00:00 2001
From: Felix Lange <fjl@twurst.com>
Date: Tue, 10 Mar 2015 00:24:11 +0100
Subject: [PATCH] cmd/ethereum: allow multiple js files

---
 cmd/ethereum/main.go | 10 +++++-----
 1 file 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) {
-- 
GitLab