Skip to content

Commit da4f4b1

Browse files
authored
Merge pull request #97 from SnaffCon/helptextfix
fix for bug in help text
2 parents a3ad635 + b8e12ca commit da4f4b1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Snaffler/Config.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static Options Parse(string[] args)
2525
options = ParseImpl(args);
2626
if (options == null)
2727
{
28-
throw new ArgumentException("Unable to correctly parse arguments.");
28+
return null;
2929
}
3030
}
3131
catch

Snaffler/SnaffleRunner.cs

+6
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ public void Run(string[] args)
5454
// parse cli opts in
5555
Options = Config.Parse(args);
5656

57+
if (Options == null)
58+
{
59+
// bail out because the user was just running help
60+
return;
61+
}
62+
5763
// set up the TSV output if the flag is set
5864
if (Options.LogTSV)
5965
{

0 commit comments

Comments
 (0)