mirror of
https://github.com/restic/rest-server.git
synced 2026-09-29 07:21:26 -07:00
Rename --cpuprofile flag to --cpu-profile (#53)
This commit is contained in:
committed by
Zlatko Čalušić
parent
698b6331b9
commit
ec7289235c
@@ -62,7 +62,7 @@ Usage:
|
|||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
--append-only enable append only mode
|
--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
|
--debug output debug messages
|
||||||
-h, --help help for rest-server
|
-h, --help help for rest-server
|
||||||
--listen string listen address (default ":8000")
|
--listen string listen address (default ":8000")
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ var cmdRoot = &cobra.Command{
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
flags := cmdRoot.Flags()
|
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.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.Listen, "listen", restserver.Config.Listen, "listen address")
|
||||||
flags.StringVar(&restserver.Config.Log, "log", restserver.Config.Log, "log HTTP requests in the combined log format")
|
flags.StringVar(&restserver.Config.Log, "log", restserver.Config.Log, "log HTTP requests in the combined log format")
|
||||||
|
|||||||
Reference in New Issue
Block a user