public void Run(string[] args) { ProjectCommandLineApplication userJwts = new(_reporter) { Name = "dotnet user-jwts" }; userJwts.HelpOption("-h|--help"); // dotnet user-jwts list ListCommand.Register(userJwts); // dotnet user-jwts create CreateCommand.Register(userJwts); // dotnet user-jwts print ecd045 PrintCommand.Register(userJwts); // dotnet user-jwts remove ecd045 RemoveCommand.Register(userJwts); // dotnet user-jwts clear ClearCommand.Register(userJwts); // dotnet user-jwts key KeyCommand.Register(userJwts); // Show help information if no subcommand/option was specified. userJwts.OnExecute(() => userJwts.ShowHelp()); try { userJwts.Execute(args); } catch (Exception ex) { _reporter.Error(ex.Message); } } }