aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethereal/config.go')
-rw-r--r--ethereal/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethereal/config.go b/ethereal/config.go
index 6a42663e7..2315d1435 100644
--- a/ethereal/config.go
+++ b/ethereal/config.go
@@ -20,6 +20,8 @@ var ImportKey string
var ExportKey bool
var AssetPath string
+var Datadir string
+
func Init() {
flag.StringVar(&Identifier, "id", "", "Custom client identifier")
flag.StringVar(&OutboundPort, "port", "30303", "listening port")
@@ -35,5 +37,7 @@ func Init() {
flag.BoolVar(&ExportKey, "export", false, "export private key")
flag.StringVar(&ImportKey, "import", "", "imports the given private key (hex)")
+ flag.StringVar(&Datadir, "datadir", ".ethereal", "specifies the datadir to use. Takes precedence over config file.")
+
flag.Parse()
}