Skip to content

Commit

Permalink
Fix crash when outputformat is not specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
naeemkhedarun committed Jan 3, 2017
1 parent 5ca865e commit 5f5315d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/NugetXray/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.IO;
using CommandLine;
using static NugetXray.ReportFormat;
#pragma warning disable 168

namespace NugetXray
Expand All @@ -12,7 +11,7 @@ public abstract class Command : ICommandValidator
[Option('o', "outputFile", Required = false, HelpText = "The path to write the report to.")]
public string OutputFile { get; set; }

[Option('f', "OutputFormat", Required = false, HelpText = "The format of the report to write: Text or Json.", Default = Text)]
[Option('f', "OutputFormat", Required = false, HelpText = "The format of the report to write: Text or Json.", Default = "Text")]
public string OutputFormat { get; set; }

public virtual IEnumerable<string> GetErrors()
Expand Down

0 comments on commit 5f5315d

Please sign in to comment.