Skip to content

Commit

Permalink
Merge pull request #4 from PaulUpson/master
Browse files Browse the repository at this point in the history
Minor correction to --help flag
  • Loading branch information
friism committed Oct 10, 2011
2 parents 9949aec + 96dc964 commit 680b0ed
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/AppHarbor.SqlServerBulkCopy/Program.cs
Expand Up @@ -39,6 +39,11 @@ static void Main(string[] args)
try
{
optionSet.Parse(args);
if (showHelp)
{
ShowHelp(optionSet);
return;
}
if (sourceServerName == null)
{
throw new OptionException("source server not specified", "srcserver");
Expand Down Expand Up @@ -79,13 +84,7 @@ static void Main(string[] args)
Console.WriteLine("Try {0} --help for more information", AppDomain.CurrentDomain.FriendlyName);
return;
}

if (showHelp)
{
ShowHelp(optionSet);
return;
}


Console.WriteLine("Retrieving source database table information...");

var usingTrustedConnection = string.IsNullOrEmpty(sourceUsername) && string.IsNullOrEmpty(sourcePassword);
Expand Down

0 comments on commit 680b0ed

Please sign in to comment.