SpecCommandLineDrawing/DraftCmdList
Jump to navigation
Jump to search
- Return to SpecCommandLineDrawing
This is a proposed format for an XML-based list of available commands and parameters.
<!-- Command directory --> <command_directory> <!-- List of types for the parameters --> <type-list> <type> <name>number</name> <desc>A single number</desc> </type> <type> <name>point</name> <desc>A pair of numbers specifying a point</desc> </type> </type-list> <!-- List of commands available on the command line --> <command-list> <cmd name="circle" desc="Draws a circle."> <parameter> <name>r</name> <desc>Radius of the circle.</desc> <type>number</type> <default>200</default> </parameter> <parameter> <name>c</name> <desc>Centre of the circle.</desc> <type>point</type> <default>0,0</default> </parameter> </cmd> <cmd name="rect" desc="Draws a rectangle."> <parameter> <name>w</name> <desc>Width of the rectangle.</desc> <type>number</type> <default>100</default> </parameter> <parameter> <name>h</name> <desc>Height of the rectangle.</desc> <type>point</type> <default>100</default> </parameter> </cmd> </command-list> </command_directory>
- Return to SpecCommandLineDrawing