fix ordering in naming arguments and help

add commands TclCommandAddPolygon(add_poly, add_polygon) and TclCommandAddPolyline(add_polyline)

implement add_polyline in camlib.py
This commit is contained in:
Kamil Sopko
2016-03-17 12:14:12 +01:00
parent 2e51c1e9cd
commit 78854f7fe0
7 changed files with 209 additions and 40 deletions

View File

@@ -10,22 +10,26 @@ class TclCommandExteriors(TclCommand.TclCommand):
# array of all command aliases, to be able use old names for backward compatibility (add_poly, add_polygon)
aliases = ['exteriors','ext']
# dictionary of types from Tcl command: args = {'name': str}, this is for value without optionname
arg_names = {'name': str,'name2': str}
# dictionary of types from Tcl command, needs to be ordered
arg_names = collections.OrderedDict([
('name', str)
])
# dictionary of types from Tcl command: types = {'outname': str} , this is for options like -optionname value
option_types = {'outname': str}
# dictionary of types from Tcl command, needs to be ordered , this is for options like -optionname value
option_types = collections.OrderedDict([
('outname', str)
])
# array of mandatory options for current Tcl command: required = {'name','outname'}
required = ['name']
# structured help for current command
# structured help for current command, args needs to be ordered
help = {
'main': "Get exteriors of polygons.",
'args': {
'name': 'Name of the source Geometry object.',
'outname': 'Name of the resulting Geometry object.'
},
'args': collections.OrderedDict([
('name', 'Name of the source Geometry object.'),
('outname', 'Name of the resulting Geometry object.')
]),
'examples':[]
}