MCPcopy Create free account
hub / github.com/NodeRT/NodeRT / ParseCommandLineArgs

Method ParseCommandLineArgs

src/NodeRTCmd/Program.cs:273–291  ·  view source on GitHub ↗
(string[] args)

Source from the content-addressed store, hash-verified

271 }
272
273 static Dictionary<String, String> ParseCommandLineArgs(string[] args)
274 {
275 Dictionary<string, string> argsDic = new Dictionary<string, string>();
276 for (int i = 0; i < args.Length; i++)
277 {
278 if (args[i].StartsWith("--"))
279 {
280 string argName = args[i].Substring(2);
281 string value = "";
282 if (args.Length > (i + 1) && !args[i + 1].StartsWith("--"))
283 {
284 value = args[i + 1];
285 }
286 argsDic[argName] = value;
287 }
288 }
289
290 return argsDic;
291 }
292 }
293}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected