CliContextIsEmptyCommand Method

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

Note that this may return even if any arguments or options were specified for parent commands. because only arguments or options specified for the current command, are checked.

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.8.2
C#
public bool IsEmptyCommand()

Return Value

Boolean
if current command is specified without any arguments or options, if not.

See Also