From ae65cc9e1bc428af8b18424281c588171d6f19e4 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 23 Jul 2024 17:08:03 +0200 Subject: [PATCH] Add exportPath to valid arguments --- OSM_Regions/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OSM_Regions/Program.cs b/OSM_Regions/Program.cs index 8db168e..c856203 100644 --- a/OSM_Regions/Program.cs +++ b/OSM_Regions/Program.cs @@ -4,13 +4,13 @@ using GlaxLogger; using Microsoft.Extensions.Logging; 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 convertArgument = new (["-c", "--convert"], 1, "Converts a OSM-XML-Export to Region-files."); Argument exportPathArgument = new (["-e", "--exportPath"], 1, "Export Directory Path."); -ArgumentFetcher af = new ([regionSizeArgument, convertArgument]); +ArgumentFetcher af = new ([regionSizeArgument, convertArgument, exportPathArgument]); Dictionary arguments = af.Fetch(args); if(!arguments.TryGetValue(regionSizeArgument, out string[]? regionSizeVars) || !arguments.TryGetValue(convertArgument, out string[]? osmFilePathVars))