Skip to content

Commit

Permalink
Color correct and new help template
Browse files Browse the repository at this point in the history
This got unchecked by mistake.
  • Loading branch information
brutaldev committed May 28, 2015
1 parent 355176a commit 2dbf1d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Brutal.Dev.StrongNameSigner.Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ private static int Main(string[] args)
{
var parsed = Args.Parse<Options>(args);

if (args.Length == 0 || parsed.Help)
if (args.Length == 0 || parsed == null || parsed.Help)
{
PrintHeader();
ArgUsage.GetStyledUsage<Options>().Write();
ArgUsage.GenerateUsageFromTemplate(typeof(Options));
}
else
{
Expand All @@ -47,7 +47,7 @@ private static int Main(string[] args)
{
PrintMessageColor(ex.Message, LogLevel.Silent, ConsoleColor.Red);

ArgUsage.GetStyledUsage<Options>().Write();
ArgUsage.GenerateUsageFromTemplate(typeof(Options));

return 2;
}
Expand Down Expand Up @@ -93,7 +93,7 @@ private static void PrintMessage(string message, LogLevel minLogLevel)

private static void PrintMessageColor(string message, LogLevel minLogLevel, ConsoleColor color)
{
C.ForegroundColor = ConsoleColor.Green;
C.ForegroundColor = color;
PrintMessage(message, minLogLevel);
C.ResetColor();
}
Expand Down

0 comments on commit 2dbf1d0

Please sign in to comment.