CliContextIsEmpty Method

Gets a value indicating whether current command is specified without any commands, directives, options or arguments.

Note that arguments and options should be optional, if they are required (no default values), then handler will not run and missing error message will be shown.

Definition

Namespace: DotMake.CommandLine
Assembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 2.5.0
C#
public bool IsEmpty()

Return Value

Boolean
if current command has no arguments or options, if not.

See Also