|
|
|
@ -11,6 +11,7 @@ CLArgs ParseArgs(int argc, char** argv)
|
|
|
|
|
{ |
|
|
|
|
MString carg = argv[i]; |
|
|
|
|
out["_arg" + MString(i)] = carg; |
|
|
|
|
bool namevalue = false; |
|
|
|
|
|
|
|
|
|
for(size_t c = 0; c < carg.Len(); c++) |
|
|
|
|
if(carg[c] == '=') |
|
|
|
@ -18,8 +19,11 @@ CLArgs ParseArgs(int argc, char** argv)
|
|
|
|
|
MString name = carg.SubStr(1, c); |
|
|
|
|
MString val = carg.SubStr(c + 2, carg.Len() - c - 1); |
|
|
|
|
out[name] = val; |
|
|
|
|
namevalue = true; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(!namevalue) out[carg] = ""; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
SList sl; |
|
|
|
|