Skip to content

Commit

Permalink
Attempt to fix issue with extra command line arguments (#501)
Browse files Browse the repository at this point in the history
* Attempt to fix issue with extra command line arguments

fixes #500

* Fix usings
  • Loading branch information
ErikEJ authored Feb 12, 2024
1 parent 114394b commit 9ed45e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DacpacTool/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.CommandLine;
using System.CommandLine.NamingConventionBinder;
using System.CommandLine.Parsing;
using System.Diagnostics;
using System.IO;
using System.Threading;
Expand Down Expand Up @@ -72,7 +73,8 @@ static async Task<int> Main(string[] args)
var rootCommand = new RootCommand { buildCommand, collectIncludesCommand, deployCommand };
rootCommand.Description = "Command line tool for generating a SQL Server Data-Tier Application Framework package (dacpac)";

return await rootCommand.InvokeAsync(args);
var processed = rootCommand.Parse(args);
return await processed.InvokeAsync();
}

private static int BuildDacpac(BuildOptions options)
Expand Down

0 comments on commit 9ed45e6

Please sign in to comment.