Commit c1834a68 authored by duanjinfei's avatar duanjinfei

add init routers

parent 2722d4cd
package main package main
import ( import (
_ "example.com/m/routers"
"runtime" "runtime"
) )
......
...@@ -18,11 +18,11 @@ import ( ...@@ -18,11 +18,11 @@ import (
var ( var (
rewardAddr string rewardAddr string
isSetReward bool = false isSetReward bool = true
) )
func init() { func init() {
RootCmd.PersistentFlags().StringVarP(&rewardAddr, "reward", "r", "", "please enter a reward address") RootCmd.PersistentFlags().StringVarP(&rewardAddr, "reward", "r", "0x84A3175be614F5886f99Da506dF08682DF530739", "please enter a reward address")
cobra.OnInitialize(initConfig) cobra.OnInitialize(initConfig)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment