@@ -1987,6 +1987,9 @@ namespace {
19871987 using namespace GEO;
19881988 using namespace CmdLine;
19891989
1990+ int geo_argc = 0;
1991+ char** geo_argv = nil;
1992+
19901993 // True if displaying help in a way that
19911994 // it will be easily processed by help2man
19921995 bool man_mode = false;
@@ -2150,6 +2153,9 @@ namespace {
21502153 bool parse_internal(
21512154 int argc, char** argv, std::vector<std::string>& unparsed_args
21522155 ) {
2156+ geo_argc = argc;
2157+ geo_argv = argv;
2158+
21532159 parse_config_file(argc, argv);
21542160
21552161 bool ok = true;
@@ -2329,6 +2335,14 @@ namespace GEO {
23292335 desc_ = nil;
23302336 }
23312337
2338+ int argc() {
2339+ return geo_argc;
2340+ }
2341+
2342+ char** argv() {
2343+ return geo_argv;
2344+ }
2345+
23322346 bool parse(
23332347 int argc, char** argv, std::vector<std::string>& unparsed_args,
23342348 const std::string& additional_arg_specs
@@ -3640,9 +3654,13 @@ namespace {
36403654 "one of auto, GLUP150, GLUP440, VanillaGL"
36413655 );
36423656 declare_arg("gfx:full_screen", false, "full screen mode");
3657+ declare_arg(
3658+ "gfx:no_decoration", false,
3659+ "no window decoration (full screen mode)"
3660+ );
36433661 declare_arg(
36443662 "gfx:transparent", false,
3645- "use transparent backsgroung (desktop integration)"
3663+ "use transparent backgroung (desktop integration)"
36463664 );
36473665 declare_arg(
36483666 "gfx:GLSL_tesselation", true, "use tesselation shaders if available"
0 commit comments