Client command line: avoid typing same thing every time?

Various topics about the game, the website, or anything else Freeciv related that doesn't fit elsewhere.
Post Reply
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Client command line: avoid typing same thing every time?

Post by Corbeau »

Howdy. Is there a way to put the server address, port and player name into the Client command line (in order to put it into the shortcut) so that I don't have to type it in every time I join the server? I'm playing LongTurn at the moment, which means I'll be connecting to it a few hundred times and I'm trying to avoid having to type "lt34.longturn.org 5034 Corbeau" every single time.
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Client command line: avoid typing same thing every time?

Post by cazfi »

Code: Select all

> freeciv-gtk3 --help
Usage: freeciv-gtk3 [option ...]
Valid option are:
  -A, --Announce PROTO  Announce game in LAN using protocol PROTO (IPv4/IPv6/none)
  -a, --autoconnect     Skip connect dialog
  -d, --debug NUM       Set debug log level (0 to 4, or 4:file1,min,max:...)
  -F, --Fatal [SIGNAL]  Raise a signal on failed assertion
  -f, --file FILE       Load saved game FILE
  -H, --Hackless        Do not request hack access to local, but not spawned, server
  -h, --help            Print a summary of the options
  -l, --log FILE        Use FILE as logfile (spawned server also uses this)
  -M, --Meta HOST       Connect to the metaserver at HOST
  -m, --music FILE      Read music tags from FILE
  -n, --name NAME       Use NAME as username on server
  -P, --Plugin PLUGIN   Use PLUGIN for sound output [none, sdl]
  -p, --port PORT       Connect to server port PORT (usually with -a)
  -r, --read FILE       Read startup script FILE (for spawned server only)
  -S, --Sound FILE      Read sound tags from FILE
  -s, --server HOST     Connect to the server at HOST (usually with -a)
  -t, --tiles FILE      Use data file FILE.tilespec for tiles
  -v, --version         Print the version number
      --                Pass any following options to the UI.
                        Try "freeciv-gtk3 -- --help" for more.
Report bugs at http://gna.org/projects/freeciv/
You're after "-s", "-p", and "-n"
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Re: Client command line: avoid typing same thing every time?

Post by Corbeau »

Indeeed. Thanks.
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
Post Reply