Table of Contents

CliResult.HasTokens Property

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

Gets a value indicating whether root command is specified with any subcommands, 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.

public bool HasTokens { get; }

Property Value

bool

true if root command is specified with any subcommands, directives, options or arguments, false if not.