Skip to content

Commit

Permalink
fix: gamemode argument parse to number
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Reder committed Mar 29, 2019
1 parent 778615f commit 2f6685d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "net64plus-server",
"version": "2.2.2",
"version": "2.2.3",
"compatVersion": "1.0",
"description": "Net64+ Dedicated Server",
"main": "dist/index.js",
Expand Down
4 changes: 3 additions & 1 deletion src/Arguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export class Arguments {
this.parser.addArgument([ '--port', '-P' ], {
type: (int: string) => parseInt(int)
})
this.parser.addArgument([ '--gamemode', '-g' ])
this.parser.addArgument([ '--gamemode', '-g' ], {
type: (int: string) => parseInt(int)
})
this.parser.addArgument([ '--disableGamemodeVote', '-G' ], {
action: 'storeConst',
constant: false,
Expand Down

0 comments on commit 2f6685d

Please sign in to comment.