|
|
@ -57,6 +57,7 @@ var ( |
|
|
|
ConfigFile string |
|
|
|
ConfigFile string |
|
|
|
DebugFile string |
|
|
|
DebugFile string |
|
|
|
LogLevel int |
|
|
|
LogLevel int |
|
|
|
|
|
|
|
LogFormat string |
|
|
|
Dump bool |
|
|
|
Dump bool |
|
|
|
DumpHash string |
|
|
|
DumpHash string |
|
|
|
DumpNumber int |
|
|
|
DumpNumber int |
|
|
@ -110,6 +111,7 @@ func Init() { |
|
|
|
flag.StringVar(&ConfigFile, "conf", defaultConfigFile, "config file") |
|
|
|
flag.StringVar(&ConfigFile, "conf", defaultConfigFile, "config file") |
|
|
|
flag.StringVar(&DebugFile, "debug", "", "debug file (no debugging if not set)") |
|
|
|
flag.StringVar(&DebugFile, "debug", "", "debug file (no debugging if not set)") |
|
|
|
flag.IntVar(&LogLevel, "loglevel", int(logger.InfoLevel), "loglevel: 0-5: silent,error,warn,info,debug,debug detail)") |
|
|
|
flag.IntVar(&LogLevel, "loglevel", int(logger.InfoLevel), "loglevel: 0-5: silent,error,warn,info,debug,debug detail)") |
|
|
|
|
|
|
|
flag.StringVar(&LogFormat, "logformat", "std", "logformat: std,raw)") |
|
|
|
flag.BoolVar(&DiffTool, "difftool", false, "creates output for diff'ing. Sets LogLevel=0") |
|
|
|
flag.BoolVar(&DiffTool, "difftool", false, "creates output for diff'ing. Sets LogLevel=0") |
|
|
|
flag.StringVar(&DiffType, "diff", "all", "sets the level of diff output [vm, all]. Has no effect if difftool=false") |
|
|
|
flag.StringVar(&DiffType, "diff", "all", "sets the level of diff output [vm, all]. Has no effect if difftool=false") |
|
|
|
flag.BoolVar(&ShowGenesis, "genesis", false, "Dump the genesis block") |
|
|
|
flag.BoolVar(&ShowGenesis, "genesis", false, "Dump the genesis block") |
|
|
|