Skip to content

Commit

Permalink
Prints the version / info at runtime (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfoidl authored Dec 14, 2018
1 parent a9511e9 commit fca0b4c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/trx2junit/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ static class Program
{
static async Task Main(string[] args)
{
PrintInfo();

if (args.Length < 1)
{
Console.WriteLine("first arg must be the trx-file");
Expand All @@ -31,5 +33,14 @@ static async Task Main(string[] args)
if (Debugger.IsAttached)
Console.ReadKey();
}
//---------------------------------------------------------------------
private static void PrintInfo()
{
Version version = typeof(Program).Assembly.GetName().Version;

Console.WriteLine($"trx2junit (c) gfoidl -- v{version.Major}.{version.Minor}.{version.Revision}");
Console.WriteLine("https://github.com/gfoidl/trx2junit");
Console.WriteLine();
}
}
}

0 comments on commit fca0b4c

Please sign in to comment.