Skip to content

Commit

Permalink
Merge pull request #24 from Tarnadas/dev
Browse files Browse the repository at this point in the history
fix: gamemode argument parse to number
  • Loading branch information
Mario Reder committed Mar 29, 2019
2 parents 84e9f83 + b9ab8ac commit 07386e1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelog/2.2.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## [2.2.3](https://github.com/Tarnadas/net64plus-server/compare/2.1.2...2.2.3) (2019-03-29)


### Bug Fixes

* gamemode argument parse to number ([2f6685d](https://github.com/Tarnadas/net64plus-server/commit/2f6685d))
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 07386e1

Please sign in to comment.