egeexyz / gsd-cli.rb

A handy CLI for deploying & managing game server as daemons
MIT License
1 stars 1 forks source link

Unexpected argument: rust #16

Open alex-galey opened 4 years ago

alex-galey commented 4 years ago
$ gsd-cli install rust
 ›   Error: Unexpected argument: rust
 ›   See more help with --help
$ gsd-cli install -d minecraft
 ›   Error: Unexpected argument: minecraft
 ›   See more help with --help

Any idea why install command didn't accept arguments ?

Installed npm with nvm and gsd-cli with npm install -g gsd-cli

$ gsd-cli -v
gsd-cli/1.1.5 linux-x64 node-v12.16.0
egeexyz commented 4 years ago

gsd-cli expects a configuration file to be passed for each game since game servers are effectively snowflakes with lost of custom data passed in at run time.

I added a flag for -n so that you can pass in the name of a supported game server and the cli will create one using a default configuration file.

Get the latest version of the cli - npm install -g gsd-cli@1.3.2 and then try gsd-cli install -n minecraft.