Rename --cpuprofile flag to --cpu-profile (#53)

This commit is contained in:
Leo R. Lundgren 2018-03-20 21:24:25 +01:00 committed by Zlatko Čalušić
parent 698b6331b9
commit ec7289235c
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ Usage:
Flags:
--append-only enable append only mode
--cpuprofile string write CPU profile to file
--cpu-profile string write CPU profile to file
--debug output debug messages
-h, --help help for rest-server
--listen string listen address (default ":8000")

View file

@ -24,7 +24,7 @@ var cmdRoot = &cobra.Command{
func init() {
flags := cmdRoot.Flags()
flags.StringVar(&restserver.Config.CPUProfile, "cpuprofile", restserver.Config.CPUProfile, "write CPU profile to file")
flags.StringVar(&restserver.Config.CPUProfile, "cpu-profile", restserver.Config.CPUProfile, "write CPU profile to file")
flags.BoolVar(&restserver.Config.Debug, "debug", restserver.Config.Debug, "output debug messages")
flags.StringVar(&restserver.Config.Listen, "listen", restserver.Config.Listen, "listen address")
flags.StringVar(&restserver.Config.Log, "log", restserver.Config.Log, "log HTTP requests in the combined log format")