aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'pySim-shell.py')
-rwxr-xr-xpySim-shell.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pySim-shell.py b/pySim-shell.py
index f9ab115..ce6efb8 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -447,6 +447,11 @@ class PysimApp(cmd2.Cmd):
"""Echo (print) a string on the console"""
self.poutput(opts.string)
+ @cmd2.with_category(CUSTOM_CATEGORY)
+ def do_version(self, opts):
+ """Print the pySim software version."""
+ import pkg_resources
+ self.poutput(pkg_resources.get_distribution('pySim'))
@with_default_category('pySim Commands')
class PySimCommands(CommandSet):