Skip to content

Commit

Permalink
Enhance command-line flag descriptions for server command with examples
Browse files Browse the repository at this point in the history
Signed-off-by: HAHWUL <[email protected]>
  • Loading branch information
hahwul committed Dec 9, 2024
1 parent 118f4a5 commit 97224c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ func runServerCmd(cmd *cobra.Command, args []string) {

func init() {
rootCmd.AddCommand(serverCmd)
serverCmd.Flags().IntVar(&port, "port", 6664, "Bind Port")
serverCmd.Flags().StringVar(&host, "host", "0.0.0.0", "Bind address")
serverCmd.Flags().IntVar(&port, "port", 6664, "Specify the port to bind the server to. Example: --port 6664")
serverCmd.Flags().StringVar(&host, "host", "0.0.0.0", "Specify the address to bind the server to. Example: --host '0.0.0.0'")
}

0 comments on commit 97224c2

Please sign in to comment.