Fixed some typos

This commit is contained in:
Marko Korhonen 2019-09-23 10:43:29 +03:00 committed by GitHub
parent 7d3f8d712c
commit 59a0594155
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,13 +10,13 @@ func serveCmd() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "serve", Use: "serve",
Short: "Serve web interface for managing bookmarks", Short: "Serve web interface for managing bookmarks",
Long: "Run a simple annd performant web server which " + Long: "Run a simple and performant web server which " +
"serves the site for managing bookmarks. If --port " + "serves the site for managing bookmarks. If --port " +
"flag is not used, it will use port 8080 by default.", "flag is not used, it will use port 8080 by default.",
Run: serveHandler, Run: serveHandler,
} }
cmd.Flags().IntP("port", "p", 8080, "Port that used by server") cmd.Flags().IntP("port", "p", 8080, "Port used by the server")
cmd.Flags().StringP("address", "a", "", "Address the server listens to") cmd.Flags().StringP("address", "a", "", "Address the server listens to")
return cmd return cmd