Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

refactor to pull any check up to top

  • Loading branch information...
commit 476efcd0d9f17776e623c1c8c1628b1030f8f2e7 1 parent 110a737
@shiftkey shiftkey authored
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/Pretzel/Program.cs
View
8 src/Pretzel/Program.cs
@@ -38,7 +38,7 @@ static void Main(string[] args)
Tracing.Info("starting pretzel...");
program.Compose();
- if (help)
+ if (help || !args.Any())
{
program.ShowHelp();
return;
@@ -54,12 +54,6 @@ private void ShowHelp()
public void Run(string[] args)
{
- if (!args.Any())
- {
- Commands.WriteHelp();
- return;
- }
-
var commandName = args[0];
var commandArgs = args.Skip(1).ToArray();
Please sign in to comment.
Something went wrong with that request. Please try again.