Skip to content

Commit

Permalink
fix: Adjust option txt
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav committed Jul 8, 2024
1 parent 4e21f0f commit 0675291
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Flags:
--dev enables dev mode
--drop-privileges drops privileges to the given user/group
--fallback-proxy string optional comma separated list of fallback upstream proxy urls
--group string give control to this group (requires root)
--group string give control to this group or gid (requires root)
-h, --help help for serve
--import-proxied-releases add every proxied modules to local store
--jwt-secret string jwt secret (default "changeme")
Expand All @@ -105,7 +105,7 @@ Flags:
--port int the port to listen to (default 8080)
--tls-cert string path to tls cert file
--tls-key string path to tls key file
--user string give control to this user (requires root)
--user string give control to this user or uid (requires root)
Global Flags:
--config string config file (default is $HOME/.gorge.yaml)
Expand Down
4 changes: 2 additions & 2 deletions cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ You can also enable the caching functionality to speed things up.`,
func init() {
rootCmd.AddCommand(serveCmd)

serveCmd.Flags().StringVar(&config.User, "user", "", "give control to this user (requires root)")
serveCmd.Flags().StringVar(&config.Group, "group", "", "give control to this group (requires root)")
serveCmd.Flags().StringVar(&config.User, "user", "", "give control to this user or uid (requires root)")
serveCmd.Flags().StringVar(&config.Group, "group", "", "give control to this group or gid (requires root)")
serveCmd.Flags().StringVar(&config.ApiVersion, "api-version", "v3", "the forge api version to use")
serveCmd.Flags().IntVar(&config.Port, "port", 8080, "the port to listen to")
serveCmd.Flags().StringVar(&config.Bind, "bind", "127.0.0.1", "host to listen to")
Expand Down

0 comments on commit 0675291

Please sign in to comment.