mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
Rename --cpuprofile flag to --cpu-profile (#53)
This commit is contained in:
parent
698b6331b9
commit
ec7289235c
2 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue