Skip to content

Commit 8f5b3ec

Browse files
authored
[STDOUT] Suggesting a more posix friendly help message (#192)
1 parent b805697 commit 8f5b3ec

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

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)
@@ -193,11 +192,14 @@ static ExporterDescriptor FindMatchingExporter(string outpath, string outType)
193192
static void PrintHelpText()
194193
{
195194
string name = Path.GetFileNameWithoutExtension(Environment.GetCommandLineArgs()[0]);
196-
Console.WriteLine($"Usage: {name} --infile file.[xdd|eds] --outfile [valid output file] [OPTIONAL] --type [exporter type]");
197-
Console.WriteLine("The output file format depends on --outfile extension and --type");
198-
Console.WriteLine("If --outfile extension matcher one exporter then --type IS NOT needed");
199-
Console.WriteLine("If --outfile extension matcher multiple exporter then --type IS needed");
200-
Console.WriteLine("If --outfile has no extension --type IS needed");
195+
Console.WriteLine($"Usage: {name} --infile FILE1 --outfile FILE2 [--type EXPORTER]");
196+
Console.WriteLine("Converts a given XDD or EDS file to many other available types.");
197+
Console.WriteLine($"Example: {name} --infile project.xdd --outfile map.md --type NetworkPDOReport");
198+
Console.WriteLine("");
199+
Console.WriteLine("FILE1 shall be a .xdd or .eds file.");
200+
Console.WriteLine("FILE2 shall have the extension of one of the supported exporters below.");
201+
Console.WriteLine("EXPORTER shall be one of the listed exporters below IF AND ONLY IF multiple of them support your output file extension.");
202+
Console.WriteLine("");
201203
Console.WriteLine("Exporter types:");
202204

203205
var exporters = Filetypes.GetExporters();

0 commit comments

Comments
 (0)