-
Notifications
You must be signed in to change notification settings - Fork 0
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 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.
Need more information or have an idea? Do not hesitate to reach out or submit a pull request.