Hello @Dani_S ,
I've reviewed your updated program. There are a few issues you should address:
Typo in debug configuration
You have a typo in the EnsureDebugArgs method that will cause failures:
case "shapefile1":
return new[]
{
"gis_convert",
@"D:\GisConverter\Tests\Shapefile\Input\ShapeFiles. 7z",
"Shapefille", // should be "Shapefile"
Argument count validation is incorrect
Your minimum argument check requires 6 arguments but you actually only need 5:
if (args.Length < 6) // should be 5
{
Console.WriteLine("usage: gis_convert <input> <format> <output> <temp> [Log <log_path> [level]]");
return (int)ExitCode.AppError;
}
The command structure is: gis_convert (0), input (1), format (2), output (3), temp (4) - that's 5 required arguments. Logging is optional. Change this to:
if (args.Length < 5)
{
Console.WriteLine("usage: gis_convert <input> <format> <output> <temp> [Log <log_path> [level]]");
return (int)ExitCode.AppError;
}