diff options
author | zelig <viktor.tron@gmail.com> | 2014-04-16 21:57:51 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-04-16 21:57:51 +0800 |
commit | 32b09d652de90d1626888c4ed6b61fb5bce0a7dc (patch) | |
tree | a58e979f08e8ca8e7ac52fa38ccac889b96a06e7 /ethereum/config.go | |
parent | f4c13f865634bae6c9cc7cd0478b7765a24fa695 (diff) | |
download | go-tangerine-32b09d652de90d1626888c4ed6b61fb5bce0a7dc.tar go-tangerine-32b09d652de90d1626888c4ed6b61fb5bce0a7dc.tar.gz go-tangerine-32b09d652de90d1626888c4ed6b61fb5bce0a7dc.tar.bz2 go-tangerine-32b09d652de90d1626888c4ed6b61fb5bce0a7dc.tar.lz go-tangerine-32b09d652de90d1626888c4ed6b61fb5bce0a7dc.tar.xz go-tangerine-32b09d652de90d1626888c4ed6b61fb5bce0a7dc.tar.zst go-tangerine-32b09d652de90d1626888c4ed6b61fb5bce0a7dc.zip |
non-interactive option
- add -y flag for non-interactive use
- refactor main
- output to logfile (not ideal..) but not to all ethutil loggers for privacy
Diffstat (limited to 'ethereum/config.go')
-rw-r--r-- | ethereum/config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethereum/config.go b/ethereum/config.go index 899a17ca6..b796af5cd 100644 --- a/ethereum/config.go +++ b/ethereum/config.go @@ -17,12 +17,14 @@ var ImportKey string var ExportKey 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(&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") |