Skip to content

Defining a default command

JF Blouin edited this page May 7, 2019 · 8 revisions

One command can optionally be set as the default command, so that it does not need to be specified by the user at run-time.

Defining a default command is not required in case you define a single command in your code. The engine will automatically know to execute it.


The CommandDefault attribute

The command you wish to define as the default simply needs to be decorated with the CommandDefault attribute, located in the CommandLineEngine.Attributes namespace. This attribute has no additional properties.

A single command can be defined as the default.

Clone this wiki locally