- multiple fixes in the Tcl commands (especially regarding the interchange between True/false and 1/0 values)
- updated the help for all Tcl Commands - in Tcl Shell, the 'help' command will add also a brief description for each command in the list
This commit is contained in:
@@ -10,6 +10,8 @@ class TclCommandAddRectangle(TclCommandSignaled):
|
||||
# array of all command aliases, to be able use old names for backward compatibility (add_poly, add_polygon)
|
||||
aliases = ['add_rectangle']
|
||||
|
||||
description = '%s %s' % ("--", "Creates a rectangle in the given Geometry object.")
|
||||
|
||||
# Dictionary of types from Tcl command, needs to be ordered.
|
||||
# For positional arguments
|
||||
arg_names = collections.OrderedDict([
|
||||
@@ -31,7 +33,7 @@ class TclCommandAddRectangle(TclCommandSignaled):
|
||||
|
||||
# structured help for current command, args needs to be ordered
|
||||
help = {
|
||||
'main': "Add a rectange to the given Geometry object.",
|
||||
'main': "Creates a rectangle in the given Geometry object.",
|
||||
'args': collections.OrderedDict([
|
||||
('name', 'Name of the Geometry object in which to add the rectangle.'),
|
||||
('x0 y0', 'Bottom left corner coordinates.'),
|
||||
|
||||
Reference in New Issue
Block a user