Skip to content

Commit

Permalink
Merge pull request #10 from Codesee-io/add-version-switch
Browse files Browse the repository at this point in the history
Add a --version switch
  • Loading branch information
mkestler-rtp authored Feb 7, 2023
2 parents e392601 + f1e3c5a commit 73dc532
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions DotNETDepends/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ static async Task Main(string[] args)
{
if (args.Length == 1 && File.Exists(args[0]))
{
if ("--version".Equals(args[0]))
{
PrintVersion();
Environment.Exit(0);
return;
}
if (!ValidateFileNameInput(args[0]))
{
throw new Exception("Invalid command line argument.");
Expand Down Expand Up @@ -52,9 +58,9 @@ static async Task Main(string[] args)
}

}

private static bool validateFileNameInput(string v)
private static void PrintVersion()
{
throw new NotImplementedException();
//!!When you change this version be sure to update the expected version in dot-net.ts in the codesee repo!!
Console.WriteLine("0.1.0");
}
}

0 comments on commit 73dc532

Please sign in to comment.