Added js interpret mode

This commit is contained in:
obscuren
2014-05-19 17:01:40 +02:00
parent 017bbbb582
commit 92eaa98e83
3 changed files with 29 additions and 3 deletions

View File

@ -21,6 +21,7 @@ var LogFile string
var DataDir string
var NonInteractive bool
var StartJsConsole bool
var InputFile string
func Init() {
flag.BoolVar(&StartConsole, "c", false, "debug and testing console")
@ -40,6 +41,7 @@ func Init() {
flag.StringVar(&ImportKey, "import", "", "imports the given private key (hex)")
flag.IntVar(&MaxPeer, "x", 5, "maximum desired peers")
flag.BoolVar(&StartJsConsole, "js", false, "exp")
flag.StringVar(&InputFile, "e", "", "Run javascript file")
flag.Parse()
}