appkit  1.5.1
RoadNarrows Robotics Application Kit
Doc_addcommand

Add a command to the command line interface. More...

Add a command to the command line interface.

The command syntax may specify multiple command forms, each separated by a newline '\n' character. The command named in each form must be the identical.

This is a light-weight function. A call to compile() is necessary to finalized command syntax processing.

Parameters
descCommand description (see CmdDesc).
strSyntaxOne or more extended usage syntax separated by newline characters.
fnExecCommand execution function of variant 1, 2, or 3.
Returns
On success, returns command's assigned unique id. Otherwise NoUid is returned.