src/commandline.cpp

changeset 142
1f5518dd8146
parent 141
68d60e2cfa76
equal deleted inserted replaced
141:68d60e2cfa76 142:1f5518dd8146
39 // _________________________________________________________________________________________________ 39 // _________________________________________________________________________________________________
40 // 40 //
41 StringList CommandLine::process (int const argc, char* argv[]) 41 StringList CommandLine::process (int const argc, char* argv[])
42 { 42 {
43 StringList args; 43 StringList args;
44 int const trueargc = argc; 44
45 45 for (int argn = 1; argn < argc; ++argn)
46 for (int argn = 1; argn < trueargc; ++argn)
47 { 46 {
48 String const arg (argv[argn]); 47 String const arg (argv[argn]);
49 48
50 if (arg == "--") 49 if (arg == "--")
51 { 50 {

mercurial