From 9a9d017ecc91ef2daf1c10710862222bfa2e0052 Mon Sep 17 00:00:00 2001 From: Taylor Richards Date: Wed, 5 Apr 2017 19:26:52 -0400 Subject: [PATCH] make sure std gui handles all variants of port cmdline option --- src/network/stand_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/stand_gui.cpp b/src/network/stand_gui.cpp index f32c181..3c511a1 100644 --- a/src/network/stand_gui.cpp +++ b/src/network/stand_gui.cpp @@ -1135,7 +1135,7 @@ bool Standalone::startFreeSpace(int argc, wxCmdLineArgsArray &argv) wxString arg( argv[i] ); // check if -port argument and set var - if ( arg.IsSameAs( wxT("-port"), false) && (argc > i+1) ) { + if ( (argc > i+1) && (arg.Contains( wxT("-port") ) || arg.IsSameAs( wxT("-o") )) ) { fsport = wxAtoi(argv[i+1]); cmd_port = true; } -- 2.39.2