Add exportPath to valid arguments
This commit is contained in:
parent
64bb5259a8
commit
ae65cc9e1b
@ -4,13 +4,13 @@ using GlaxLogger;
|
|||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using OSM_Regions;
|
using OSM_Regions;
|
||||||
|
|
||||||
Logger logger = new(LogLevel.Trace, consoleOut: Console.Out);
|
Logger logger = new(LogLevel.Debug, consoleOut: Console.Out);
|
||||||
|
|
||||||
Argument regionSizeArgument = new (["-r", "--regionSize"], 1, "Size of Regions (f.e. 0.001)");
|
Argument regionSizeArgument = new (["-r", "--regionSize"], 1, "Size of Regions (f.e. 0.001)");
|
||||||
Argument convertArgument = new (["-c", "--convert"], 1, "Converts a OSM-XML-Export to Region-files.");
|
Argument convertArgument = new (["-c", "--convert"], 1, "Converts a OSM-XML-Export to Region-files.");
|
||||||
Argument exportPathArgument = new (["-e", "--exportPath"], 1, "Export Directory Path.");
|
Argument exportPathArgument = new (["-e", "--exportPath"], 1, "Export Directory Path.");
|
||||||
|
|
||||||
ArgumentFetcher af = new ([regionSizeArgument, convertArgument]);
|
ArgumentFetcher af = new ([regionSizeArgument, convertArgument, exportPathArgument]);
|
||||||
Dictionary<Argument, string[]> arguments = af.Fetch(args);
|
Dictionary<Argument, string[]> arguments = af.Fetch(args);
|
||||||
|
|
||||||
if(!arguments.TryGetValue(regionSizeArgument, out string[]? regionSizeVars) || !arguments.TryGetValue(convertArgument, out string[]? osmFilePathVars))
|
if(!arguments.TryGetValue(regionSizeArgument, out string[]? regionSizeVars) || !arguments.TryGetValue(convertArgument, out string[]? osmFilePathVars))
|
||||||
|
Loading…
Reference in New Issue
Block a user