- some small corrections
This commit is contained in:
parent
ddda4773e3
commit
21406fcccf
|
@ -28,17 +28,18 @@ class TclCommandListSys(TclCommand):
|
|||
# structured help for current command, args needs to be ordered
|
||||
help = {
|
||||
'main': "Returns the list of the names of system variables.\n"
|
||||
"Without a parameter it will list all the system parameters. "
|
||||
"As a parameter use first letter or first letters from the name "
|
||||
"Without an argument it will list all the system parameters. "
|
||||
"As an argument use first letter or first letters from the name "
|
||||
"of the system variable.\n"
|
||||
"In that case it will list only the system variables that starts with that string.\n"
|
||||
"Main categories start with: gerber or excellon or geometry or cncjob or global.\n"
|
||||
"Note: Use get_sys command to get the value and set_sys command to set it.\n",
|
||||
"Note: Use get_sys TclCommand to get the value and set_sys TclCommand to set it.\n",
|
||||
'args': collections.OrderedDict([
|
||||
]),
|
||||
'examples': ['list_sys',
|
||||
'list_sys ser'
|
||||
'list_sys gerber',
|
||||
'list_sys cncjob']
|
||||
'list_sys cncj']
|
||||
}
|
||||
|
||||
def execute(self, args, unnamed_args):
|
||||
|
@ -50,7 +51,6 @@ class TclCommandListSys(TclCommand):
|
|||
"""
|
||||
if 'selection' in args:
|
||||
argument = args['selection']
|
||||
print(argument)
|
||||
return str([k for k in self.app.defaults.keys() if str(k).startswith(str(argument))])
|
||||
else:
|
||||
return str([*self.app.defaults])
|
Loading…
Reference in New Issue