aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum/config.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-17 00:24:57 +0800
committerobscuren <geffobscura@gmail.com>2014-06-17 00:24:57 +0800
commit98335d2040bbd2b18a238b4ffa47e50507fffb31 (patch)
tree1fde3dfa00d0e784556ec625ef5b4906607d98aa /ethereum/config.go
parentaa8a86f0a61286b3d0709316215ce6e9d3833f25 (diff)
parentc1220e87293e440f842095c5a601515c0c8f5cb0 (diff)
downloadgo-tangerine-98335d2040bbd2b18a238b4ffa47e50507fffb31.tar
go-tangerine-98335d2040bbd2b18a238b4ffa47e50507fffb31.tar.gz
go-tangerine-98335d2040bbd2b18a238b4ffa47e50507fffb31.tar.bz2
go-tangerine-98335d2040bbd2b18a238b4ffa47e50507fffb31.tar.lz
go-tangerine-98335d2040bbd2b18a238b4ffa47e50507fffb31.tar.xz
go-tangerine-98335d2040bbd2b18a238b4ffa47e50507fffb31.tar.zst
go-tangerine-98335d2040bbd2b18a238b4ffa47e50507fffb31.zip
Merge branch 'release/0.5.13'0.5.13
Diffstat (limited to 'ethereum/config.go')
-rw-r--r--ethereum/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethereum/config.go b/ethereum/config.go
index 39dc11727..a80b47a8e 100644
--- a/ethereum/config.go
+++ b/ethereum/config.go
@@ -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)