vncserver: extract ParseAndProcessCliOptions()

KASM-1609_select_de_to_run
Dmitry Maksyoma 4 years ago
parent aa5fd48852
commit 59f990b372

@ -31,11 +31,7 @@
&DetectFontPath(); &DetectFontPath();
# Check command line options &ParseAndProcessCliOptions();
my @supportedOptions = ("-geometry",1,"-depth",1,"-pixelformat",1,"-name",1,"-kill",1,"-help",0,"-h",0,"--help",0,"-fp",1,"-list",0,"-fg",0,"-autokill",0,"-noxstartup",0,"-xstartup",1);
&ParseOptionsAndRemoveMatchesFromARGV(@supportedOptions);
&ProcessCliOptions();
&CheckGeometryAndDepth(); &CheckGeometryAndDepth();
@ -1046,3 +1042,9 @@ sub SetGlobalVariables {
chop($host = `uname -n`); chop($host = `uname -n`);
} }
sub ParseAndProcessCliOptions {
my @supportedOptions = ("-geometry",1,"-depth",1,"-pixelformat",1,"-name",1,"-kill",1,"-help",0,"-h",0,"--help",0,"-fp",1,"-list",0,"-fg",0,"-autokill",0,"-noxstartup",0,"-xstartup",1);
&ParseOptionsAndRemoveMatchesFromARGV(@supportedOptions);
&ProcessCliOptions();
}

Loading…
Cancel
Save