TclCommandVersion.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. from tclCommands.TclCommand import TclCommand
  2. import collections
  3. class TclCommandVersion(TclCommand):
  4. """
  5. Tcl shell command to check the program version.
  6. example:
  7. """
  8. # List of all command aliases, to be able use old names for backward compatibility (add_poly, add_polygon)
  9. aliases = ['version']
  10. # Dictionary of types from Tcl command, needs to be ordered
  11. arg_names = collections.OrderedDict([
  12. ])
  13. # Dictionary of types from Tcl command, needs to be ordered , this is for options like -optionname value
  14. option_types = collections.OrderedDict([
  15. ])
  16. # array of mandatory options for current Tcl command: required = {'name','outname'}
  17. required = []
  18. # structured help for current command, args needs to be ordered
  19. help = {
  20. 'main': "Checks the program version.",
  21. 'args': collections.OrderedDict([
  22. ]),
  23. 'examples': ['version']
  24. }
  25. def execute(self, args, unnamed_args):
  26. """
  27. :param args:
  28. :param unnamed_args:
  29. :return:
  30. """
  31. self.app.version_check()