Added version flag

This commit is contained in:
obscuren
2015-01-07 01:21:55 +01:00
parent 60d9611c23
commit 032ab66529
2 changed files with 17 additions and 0 deletions

View File

@ -64,6 +64,7 @@ var (
ImportChain string
SHH bool
Dial bool
PrintVersion bool
)
// flags specific to cli client
@ -120,6 +121,7 @@ func Init() {
flag.BoolVar(&StartMining, "mine", false, "start dagger mining")
flag.BoolVar(&StartJsConsole, "js", false, "launches javascript console")
flag.BoolVar(&PrintVersion, "version", false, "prints version number")
flag.Parse()