From 273d0539bbfd4d04058de26e30cfa5202ee5f95b Mon Sep 17 00:00:00 2001 From: Geoffroy Du Prey Date: Tue, 21 Oct 2025 14:20:56 +0200 Subject: [PATCH 1/2] [STDOUT] Suggesting a more posix friendly help message --- EDSSharp/Program.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/EDSSharp/Program.cs b/EDSSharp/Program.cs index a8b783a8..8c8cf92b 100644 --- a/EDSSharp/Program.cs +++ b/EDSSharp/Program.cs @@ -10,7 +10,6 @@ namespace EDSSharp { class Program { - static libEDSsharp.EDSsharp eds = new EDSsharp(); static void Main(string[] args) @@ -175,11 +174,14 @@ static ExporterDescriptor FindMatchingExporter(string outpath, string outType) static void PrintHelpText() { string name = Path.GetFileNameWithoutExtension(Environment.GetCommandLineArgs()[0]); - Console.WriteLine($"Usage: {name} --infile file.[xdd|eds] --outfile [valid output file] [OPTIONAL] --type [exporter type]"); - Console.WriteLine("The output file format depends on --outfile extension and --type"); - Console.WriteLine("If --outfile extension matcher one exporter then --type IS NOT needed"); - Console.WriteLine("If --outfile extension matcher multiple exporter then --type IS needed"); - Console.WriteLine("If --outfile has no extension --type IS needed"); + Console.WriteLine($"Usage: {name} --infile FILE1 --outfile FILE2 [--type EXPORTER]"); + Console.WriteLine("Converts a given XDD or EDS file to many other available types."); + Console.WriteLine($"Example (from repository root assuming repository structure): dotnet run {name}/Program.cs --project {name} --framework net481 --infile project.xdd --outfile map.md --type NetworkPDOReport"); + Console.WriteLine(""); + Console.WriteLine("FILE1 shall be a .xdd or .eds file."); + Console.WriteLine("FILE2 shall have the extension of one of the supported exporters below."); + Console.WriteLine("EXPORTER shall be one of the listed exporters below IF AND ONLY IF multiple of them support your output file extension."); + Console.WriteLine(""); Console.WriteLine("Exporter types:"); var exporters = Filetypes.GetExporters(); From cc2f65ea04ec36645135921c88474d16ebd08278 Mon Sep 17 00:00:00 2001 From: reza0310 Date: Tue, 21 Oct 2025 17:00:49 +0200 Subject: [PATCH 2/2] We assume users will have a compiled version Co-authored-by: Lars Elgtvedt Susaas --- EDSSharp/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EDSSharp/Program.cs b/EDSSharp/Program.cs index 8c8cf92b..02e52bfb 100644 --- a/EDSSharp/Program.cs +++ b/EDSSharp/Program.cs @@ -176,7 +176,7 @@ static void PrintHelpText() string name = Path.GetFileNameWithoutExtension(Environment.GetCommandLineArgs()[0]); Console.WriteLine($"Usage: {name} --infile FILE1 --outfile FILE2 [--type EXPORTER]"); Console.WriteLine("Converts a given XDD or EDS file to many other available types."); - Console.WriteLine($"Example (from repository root assuming repository structure): dotnet run {name}/Program.cs --project {name} --framework net481 --infile project.xdd --outfile map.md --type NetworkPDOReport"); + Console.WriteLine($"Example: {name} --infile project.xdd --outfile map.md --type NetworkPDOReport"); Console.WriteLine(""); Console.WriteLine("FILE1 shall be a .xdd or .eds file."); Console.WriteLine("FILE2 shall have the extension of one of the supported exporters below.");