API Reference
McMaster.Extensions.CommandLineUtils targets .NET 8.0.
Key Types
The main entry point for most command line applications is CommandLineApplication.
For apps built using the attribute API, these are the most common attributes:
- CommandAttribute - Marks a class as a command
- OptionAttribute - Defines command-line options
- ArgumentAttribute - Defines positional arguments
- SubcommandAttribute - Defines subcommands
- HelpOptionAttribute - Adds --help option
- VersionOptionAttribute - Adds --version option
Utilities
- Prompt - Interactive prompts for user input
- DotNetExe - Locate the dotnet executable
- ArgumentEscaper - Escape arguments for shell execution
- IConsole - Abstraction for console I/O (useful for testing)