Reimplement -datadir flag. Implements #79
The config file is actually loaded from the folder that datadir points at
This commit is contained in:
@ -24,6 +24,8 @@ var NonInteractive bool
|
||||
var StartJsConsole bool
|
||||
var InputFile string
|
||||
|
||||
var Datadir string
|
||||
|
||||
func Init() {
|
||||
flag.Usage = func() {
|
||||
fmt.Fprintf(os.Stderr, "%s [options] [filename]:\n", os.Args[0])
|
||||
@ -46,6 +48,8 @@ func Init() {
|
||||
flag.StringVar(&LogFile, "logfile", "", "log file (defaults to standard output)")
|
||||
flag.StringVar(&ImportKey, "import", "", "imports the given private key (hex)")
|
||||
|
||||
flag.StringVar(&Datadir, "datadir", ".ethereum", "specifies the datadir to use. Takes precedence over config file.")
|
||||
|
||||
flag.Parse()
|
||||
|
||||
InputFile = flag.Arg(0)
|
||||
|
Reference in New Issue
Block a user