Table of Contents

CliResult.HasArgs Property

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

Gets a value indicating whether called command is specified with any arguments or options.

Note that this may return false even if any arguments or options were specified for parent commands. because only arguments or options specified for the called 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.

public bool HasArgs { get; }

Property Value

bool

true if called command is specified with any arguments or options, false if not.