TclCommandVersion.py 1.0 KB

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