Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
csq should share the same verbose argument as squirrel
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Aug 20, 2022
1 parent 6c782af commit 42b89ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Squirrel.Tool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ static int MainInner(string[] inargs)
var toolOptions = new OptionSet() {
{ "csq-version=", v => explicitSquirrelVersion = v },
{ "csq-sln=", v => explicitSolutionPath = v },
{ "csq-verbose", _ => Verbose = true },
{ "verbose", _ => Verbose = true },
};

var restArgs = toolOptions.Parse(inargs).ToArray();
// we want to forward the --verbose argument to Squirrel, too.
var verboseArgs = Verbose ? new string[] { "--verbose" } : new string[0];
string[] restArgs = toolOptions.Parse(inargs).Concat(verboseArgs).ToArray();

Console.WriteLine($"Squirrel Locator 'csq' {SquirrelDisplayVersion}");
Write($"Entry EXE: {SquirrelRuntimeInfo.EntryExePath}", true);
Expand Down

0 comments on commit 42b89ca

Please sign in to comment.