diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-05 21:56:05 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-05 21:56:05 +0800 |
commit | a77dcd10414e94fbd255931b0a539bbfefd91f56 (patch) | |
tree | 5c804987152d89c4915a433bb79fcb7b95c6364c /ethereum/config.go | |
parent | 1323f60c074297c97397d20dd275124da2f5b531 (diff) | |
parent | 70221c36e381e98bf3e92913f48fb94d18da8ef5 (diff) | |
download | go-tangerine-poc5-rc1.tar go-tangerine-poc5-rc1.tar.gz go-tangerine-poc5-rc1.tar.bz2 go-tangerine-poc5-rc1.tar.lz go-tangerine-poc5-rc1.tar.xz go-tangerine-poc5-rc1.tar.zst go-tangerine-poc5-rc1.zip |
Merge branch 'release/poc5-rc1'poc5-rc1
Diffstat (limited to 'ethereum/config.go')
-rw-r--r-- | ethereum/config.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ethereum/config.go b/ethereum/config.go index e4935dfed..234e79f12 100644 --- a/ethereum/config.go +++ b/ethereum/config.go @@ -6,6 +6,7 @@ import ( var StartConsole bool var StartMining bool +var StartRpc bool var UseUPnP bool var OutboundPort string var ShowGenesis bool @@ -15,20 +16,23 @@ var GenAddr bool var UseSeed bool var ImportKey string var ExportKey bool - -//var UseGui bool +var LogFile string var DataDir string +var NonInteractive bool func Init() { flag.BoolVar(&StartConsole, "c", false, "debug and testing console") flag.BoolVar(&StartMining, "m", false, "start dagger mining") flag.BoolVar(&ShowGenesis, "g", false, "prints genesis header and exits") //flag.BoolVar(&UseGui, "gui", true, "use the gui") + flag.BoolVar(&StartRpc, "r", false, "start rpc server") + flag.BoolVar(&NonInteractive, "y", false, "non-interactive mode (say yes to confirmations)") flag.BoolVar(&UseUPnP, "upnp", false, "enable UPnP support") 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(&OutboundPort, "p", "30303", "listening port") + flag.StringVar(&LogFile, "logfile", "", "log file (defaults to standard output)") flag.StringVar(&DataDir, "dir", ".ethereum", "ethereum data directory") flag.StringVar(&ImportKey, "import", "", "imports the given private key (hex)") flag.IntVar(&MaxPeer, "x", 5, "maximum desired peers") |