RootCmd.PersistentFlags().StringVar(&flags.DataDir,"data","data","data directory (relative paths are resolved against the current working directory)")
RootCmd.PersistentFlags().StringVar(&flags.ConfigPath,"config","","path to config.json (relative to current working directory; defaults to [data directory]/config.json, where [data directory] is set by --data)")
RootCmd.PersistentFlags().BoolVar(&flags.Dev,"dev",false,"start with dev mode")
RootCmd.PersistentFlags().BoolVar(&flags.ForceBinDir,"force-bin-dir",false,"Force to use the directory where the binary file is located as data directory")