Skip to content

Commit c64f81f

Browse files
committed
Fix -p flag used for both --public and --protected
1 parent 71d7962 commit c64f81f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/new/client/game.go.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ func Init(config GameConfig) (*Game, error) {
6767
}
6868

6969
var public bool
70-
pflag.BoolVarP(&public, "public", "p", false, "Make the created game public.")
70+
pflag.BoolVar(&public, "public", false, "Make the created game public.")
7171
var protected bool
72-
pflag.BoolVarP(&protected, "protected", "p", false, "Make the created game protected.")
72+
pflag.BoolVar(&protected, "protected", false, "Make the created game protected.")
7373
var spectate bool
74-
pflag.BoolVarP(&spectate, "spectate", "s", false, "Spectate the created/joined game. The username is not neccessary if this flag is set.")
74+
pflag.BoolVar(&spectate, "spectate", false, "Spectate the created/joined game. The username is not neccessary if this flag is set.")
7575
pflag.Parse()
7676

7777
var operation string

0 commit comments

Comments
 (0)