Skip to content

Commit

Permalink
adding version flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ebekker committed Jan 7, 2019
1 parent 6b7176b commit e69b9df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/servicecerts-cli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace servicecerts
typeof(ListCerts),
typeof(ImportCert),
typeof(RemoveCert))]
[VersionOptionFromMember(MemberName = nameof(Program.Version))]
class Program
{
public static readonly StoreName DefaultStore =
Expand All @@ -19,6 +20,8 @@ class Program
static async Task<int> Main(string[] args) =>
await CommandLineApplication.ExecuteAsync<Program>(args);

public string Version => typeof(Program).Assembly.GetName().Version.ToString();

[Option("--list-stores",
"List available pre-defined Certificate Store names",
CommandOptionType.NoValue)]
Expand Down

0 comments on commit e69b9df

Please sign in to comment.