aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-06-30 03:31:00 +0800
committerzelig <viktor.tron@gmail.com>2014-06-30 03:31:00 +0800
commit12fbb7ae5ceb3c06fb7c4611e82d7cb10cea06be (patch)
treec04e666ee8a295fcee3f7395e9850753fef42035
parentce4080faa78238c2dc389070da4a376226f48833 (diff)
downloadgo-tangerine-12fbb7ae5ceb3c06fb7c4611e82d7cb10cea06be.tar
go-tangerine-12fbb7ae5ceb3c06fb7c4611e82d7cb10cea06be.tar.gz
go-tangerine-12fbb7ae5ceb3c06fb7c4611e82d7cb10cea06be.tar.bz2
go-tangerine-12fbb7ae5ceb3c06fb7c4611e82d7cb10cea06be.tar.lz
go-tangerine-12fbb7ae5ceb3c06fb7c4611e82d7cb10cea06be.tar.xz
go-tangerine-12fbb7ae5ceb3c06fb7c4611e82d7cb10cea06be.tar.zst
go-tangerine-12fbb7ae5ceb3c06fb7c4611e82d7cb10cea06be.zip
new command line options
- keyring: keyring/session identifier used by key manager - keystore: choice of db/file key storage - import message updated - export: name of directory to export keys to (was bool)
-rw-r--r--ethereal/flags.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/ethereal/flags.go b/ethereal/flags.go
index 9bed38d9f..2c9b3af5f 100644
--- a/ethereal/flags.go
+++ b/ethereal/flags.go
@@ -13,6 +13,8 @@ import (
)
var Identifier string
+var KeyRing string
+var KeyStore string
var StartRpc bool
var RpcPort int
var UseUPnP bool
@@ -22,8 +24,8 @@ var AddPeer string
var MaxPeer int
var GenAddr bool
var UseSeed bool
-var ImportKey string
-var ExportKey bool
+var SecretFile string
+var ExportDir string
var NonInteractive bool
var Datadir string
var LogFile string
@@ -73,6 +75,8 @@ func Init() {
}
flag.StringVar(&Identifier, "id", "", "Custom client identifier")
+ flag.StringVar(&KeyRing, "keyring", "", "identifier for keyring to use")
+ flag.StringVar(&KeyStore, "keystore", "db", "system to store keyrings: db|file (db)")
flag.StringVar(&OutboundPort, "port", "30303", "listening port")
flag.BoolVar(&UseUPnP, "upnp", false, "enable UPnP support")
flag.IntVar(&MaxPeer, "maxpeer", 10, "maximum desired peers")
@@ -81,9 +85,9 @@ func Init() {
flag.BoolVar(&NonInteractive, "y", false, "non-interactive mode (say yes to confirmations)")
flag.BoolVar(&UseSeed, "seed", true, "seed peers")
flag.BoolVar(&GenAddr, "genaddr", false, "create a new priv/pub key")
- flag.BoolVar(&ExportKey, "export", false, "export private key")
+ flag.StringVar(&SecretFile, "import", "", "imports the file given (hex or mnemonic formats)")
+ flag.StringVar(&ExportDir, "export", "", "exports the session keyring to files in the directory given")
flag.StringVar(&LogFile, "logfile", "", "log file (defaults to standard output)")
- flag.StringVar(&ImportKey, "import", "", "imports the given private key (hex)")
flag.StringVar(&Datadir, "datadir", defaultDataDir(), "specifies the datadir to use")
flag.StringVar(&ConfigFile, "conf", defaultConfigFile, "config file")
flag.StringVar(&DebugFile, "debug", "", "debug file (no debugging if not set)")