Change: improve wording of help (host instead of IP) and update man page

pull/603/merge
Rubidium 11 months ago committed by rubidium42
parent a8e4d35bde
commit 40195e689d

@ -1,6 +1,6 @@
.\" Hey, EMACS: -*- nroff -*- .\" Hey, EMACS: -*- nroff -*-
.\" Please adjust this date whenever revising the manpage. .\" Please adjust this date whenever revising the manpage.
.Dd October 13, 2014 .Dd August 12, 2023
.Dt OPENTTD 6 .Dt OPENTTD 6
.Os .Os
.Sh NAME .Sh NAME
@ -8,7 +8,7 @@
.Nd open source clone of the Microprose game \(lqTransport Tycoon Deluxe\(rq .Nd open source clone of the Microprose game \(lqTransport Tycoon Deluxe\(rq
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl efhx .Op Fl efhQxX
.Op Fl b Ar blitter .Op Fl b Ar blitter
.Op Fl c Ar config_file .Op Fl c Ar config_file
.Op Fl d Op Ar level | Ar cat Ns = Ns Ar lvl Ns Op , Ns Ar ... .Op Fl d Op Ar level | Ar cat Ns = Ns Ar lvl Ns Op , Ns Ar ...
@ -19,7 +19,7 @@
.Op Fl l Ar host Ns Op : Ns Ar port .Op Fl l Ar host Ns Op : Ns Ar port
.Op Fl m Ar driver .Op Fl m Ar driver
.Op Fl M Ar musicset .Op Fl M Ar musicset
.Op Fl n Ar host Ns Oo : Ns Ar port Oc Ns Op # Ns Ar player .Op Fl n Ar host Ns Oo : Ns Ar port Oc Ns Op # Ns Ar company
.Op Fl p Ar password .Op Fl p Ar password
.Op Fl P Ar password .Op Fl P Ar password
.Op Fl q Ar savegame .Op Fl q Ar savegame
@ -29,7 +29,7 @@
.Op Fl t Ar year .Op Fl t Ar year
.Op Fl v Ar driver .Op Fl v Ar driver
.Sh OPTIONS .Sh OPTIONS
.Bl -tag -width "-n host[:port][#player]" .Bl -tag -width "-n host[:port][#company]"
.It Fl b Ar blitter .It Fl b Ar blitter
Select the blitter Select the blitter
.Ar blitter ; .Ar blitter ;
@ -83,10 +83,8 @@ see
.Fl h .Fl h
for a full list. for a full list.
.It Fl l Ar host Ns Op : Ns Ar port .It Fl l Ar host Ns Op : Ns Ar port
Redirect Redirect debug output; see
.Fn DEBUG .Fl d .
output; see
.Fl D .
.It Fl m Ar driver .It Fl m Ar driver
Select the music driver Select the music driver
.Ar driver ; .Ar driver ;
@ -99,8 +97,8 @@ Select the music set
see see
.Fl h .Fl h
for a full list. for a full list.
.It Fl n Ar host Ns Oo : Ns Ar port Oc Ns Op # Ns Ar player .It Fl n Ar host Ns Oo : Ns Ar port Oc Ns Op # Ns Ar company
Join a network game, optionally specifying a port to connect to and player to Join a network game, optionally specifying a port to connect to and company to
play as. play as.
.It Fl p Ar password .It Fl p Ar password
Password used to join server. Password used to join server.
@ -112,6 +110,14 @@ Only useful with
.Fl n . .Fl n .
.It Fl q Ar savegame .It Fl q Ar savegame
Write some information about the specified savegame and exit. Write some information about the specified savegame and exit.
.It Fl Q
Don't scan for/load NewGRF files on startup.
.Pp
Passing
.Fl Q
twice (so,
.Fl QQ
) will disable NewGRF scanning/loading entirely.
.It Fl r Ar width Ns x Ns Ar height .It Fl r Ar width Ns x Ns Ar height
Set the resolution to Set the resolution to
.Ar width .Ar width
@ -141,6 +147,8 @@ see
for a full list. for a full list.
.It Fl x .It Fl x
Do not automatically save to config file on exit. Do not automatically save to config file on exit.
.It Fl X
Do not use global folders to search for files.
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Lk https://wiki.openttd.org "Wiki" .Lk https://wiki.openttd.org "Wiki"

@ -166,11 +166,11 @@ static void ShowHelp()
" -e = Start Editor\n" " -e = Start Editor\n"
" -g [savegame] = Start new/save game immediately\n" " -g [savegame] = Start new/save game immediately\n"
" -G seed = Set random seed\n" " -G seed = Set random seed\n"
" -n ip[:port][#company]= Join network game\n" " -n host[:port][#company]= Join network game\n"
" -p password = Password to join server\n" " -p password = Password to join server\n"
" -P password = Password to join company\n" " -P password = Password to join company\n"
" -D [ip][:port] = Start dedicated server\n" " -D [host][:port] = Start dedicated server\n"
" -l ip[:port] = Redirect Debug()\n" " -l host[:port] = Redirect Debug()\n"
#if !defined(_WIN32) #if !defined(_WIN32)
" -f = Fork into the background (dedicated only)\n" " -f = Fork into the background (dedicated only)\n"
#endif #endif
@ -548,7 +548,7 @@ int openttd_main(int argc, char *argv[])
break; break;
case 'f': _dedicated_forks = true; break; case 'f': _dedicated_forks = true; break;
case 'n': case 'n':
scanner->connection_string = mgo.opt; // IP:port#company parameter scanner->connection_string = mgo.opt; // host:port#company parameter
break; break;
case 'l': case 'l':
debuglog_conn = mgo.opt; debuglog_conn = mgo.opt;

Loading…
Cancel
Save