mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +08:00
add default values for CLI args
This commit is contained in:
parent
6cb179b553
commit
9cfb923708
@ -34,10 +34,10 @@ func main() {
|
|||||||
debug := flag.Bool("debug", false, "use debug mode")
|
debug := flag.Bool("debug", false, "use debug mode")
|
||||||
|
|
||||||
proto := flag.String("proto", "tcp", "protocol for api to use (tcp, unix)")
|
proto := flag.String("proto", "tcp", "protocol for api to use (tcp, unix)")
|
||||||
addr := flag.String("addr", "0.0.0.0", "network address for api to listen on")
|
addr := flag.String("addr", "0.0.0.0:3001", "network address for api to listen on")
|
||||||
|
|
||||||
dbuser := flag.String("dbuser", "pokerogue", "database username")
|
dbuser := flag.String("dbuser", "pokerogue", "database username")
|
||||||
dbpass := flag.String("dbpass", "", "database password")
|
dbpass := flag.String("dbpass", "pokerogue", "database password")
|
||||||
dbproto := flag.String("dbproto", "tcp", "protocol for database connection")
|
dbproto := flag.String("dbproto", "tcp", "protocol for database connection")
|
||||||
dbaddr := flag.String("dbaddr", "localhost", "database address")
|
dbaddr := flag.String("dbaddr", "localhost", "database address")
|
||||||
dbname := flag.String("dbname", "pokeroguedb", "database name")
|
dbname := flag.String("dbname", "pokeroguedb", "database name")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user