Skip to content

Commit 273d053

Browse files
committed
[STDOUT] Suggesting a more posix friendly help message
1 parent d3773bc commit 273d053

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

EDSSharp/Program.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ namespace EDSSharp
1010
{
1111
class Program
1212
{
13-
1413
static libEDSsharp.EDSsharp eds = new EDSsharp();
1514

1615
static void Main(string[] args)
@@ -175,11 +174,14 @@ static ExporterDescriptor FindMatchingExporter(string outpath, string outType)
175174
static void PrintHelpText()
176175
{
177176
string name = Path.GetFileNameWithoutExtension(Environment.GetCommandLineArgs()[0]);
178-
Console.WriteLine($"Usage: {name} --infile file.[xdd|eds] --outfile [valid output file] [OPTIONAL] --type [exporter type]");
179-
Console.WriteLine("The output file format depends on --outfile extension and --type");
180-
Console.WriteLine("If --outfile extension matcher one exporter then --type IS NOT needed");
181-
Console.WriteLine("If --outfile extension matcher multiple exporter then --type IS needed");
182-
Console.WriteLine("If --outfile has no extension --type IS needed");
177+
Console.WriteLine($"Usage: {name} --infile FILE1 --outfile FILE2 [--type EXPORTER]");
178+
Console.WriteLine("Converts a given XDD or EDS file to many other available types.");
179+
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");
180+
Console.WriteLine("");
181+
Console.WriteLine("FILE1 shall be a .xdd or .eds file.");
182+
Console.WriteLine("FILE2 shall have the extension of one of the supported exporters below.");
183+
Console.WriteLine("EXPORTER shall be one of the listed exporters below IF AND ONLY IF multiple of them support your output file extension.");
184+
Console.WriteLine("");
183185
Console.WriteLine("Exporter types:");
184186

185187
var exporters = Filetypes.GetExporters();

0 commit comments

Comments
 (0)