Command-line argument parsing

Report any bugs you find in fCraft here
Post Reply
User avatar
Hellenion
Offline
Posts: 220
Joined: October 20th, 2011, 9:20 am
Location: Subnet
Contact:

Command-line argument parsing

Post by Hellenion »

starting a GUI through the command line causes the non-fatal error:

Code: Select all

$ mono ConfigGUI.exe 
Unknown argument: /[...]/fcraft/ConfigGUI.exe

$ mono ServerGUI.exe 
Unknown argument: /[...]/fcraft/ServerGUI.exe
CLI .exes do not seem to be affected.

I don't know about windows, but in linux, argv[0] is always the command that started the program.
There's no real problem with this, though. Everything still works.
A = {x ∈ P(U) | x ∉ x}
Mods:
  1. /Su - Allows players to temporarily become a different rank
  2. /Snap - Like /Line but only draws straight or diagonal lines.
  3. pre-0.630 skip/none block

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: Command-line argument parsing

Post by fragmer »

Strange. Probably a Mono-specific quirk, as usual. Investigating.

Post Reply