acceptsPartialCommandLine property

bool get acceptsPartialCommandLine

Whether this action option accepts a partial command line, i.e. runs even if the command line is incomplete.

True by default for action options.

Incomplete means that this or the preceding commands have configuration errors, such as missing mandatory subcommand, positional arguments, options or option values, or mutually exclusive groups without a mandatory choice. These errors remain available in CommandContext.config.errors. Command line parse errors, such as unknown options or subcommands, are still raised.

True for the built-in help command, which shows the usage of the preceding command regardless of whether its arguments are complete, like the --help option does. Custom CommandResolvers should honor this.

Implementation

bool get acceptsPartialCommandLine => true;