diff --git a/src/AppHarbor.SqlServerBulkCopy/Program.cs b/src/AppHarbor.SqlServerBulkCopy/Program.cs index bf82a37..376f582 100644 --- a/src/AppHarbor.SqlServerBulkCopy/Program.cs +++ b/src/AppHarbor.SqlServerBulkCopy/Program.cs @@ -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"); @@ -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);