We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9641d95 commit f7e26faCopy full SHA for f7e26fa
1 file changed
EncryptedConfigValue.Cli/Program.cs
@@ -10,7 +10,15 @@ static async Task Main(string[] args)
10
app.HelpOption("-?|-h|--help");
11
app.AddSubcommand(new GenerateKeyCommand());
12
app.AddSubcommand(new EncryptConfigValueCommand());
13
- await app.ExecuteAsync(args);
+ try
14
+ {
15
+ await app.ExecuteAsync(args);
16
+ }
17
+ catch (CommandParsingException ex)
18
19
+ Console.Error.WriteLine($"Error: {ex.Message}");
20
+ Environment.ExitCode = 1;
21
22
}
23
24
0 commit comments