summaryrefslogtreecommitdiff
path: root/morphlib
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-11-25 16:18:45 +0000
committerTiago Gomes <tiago.gomes@codethink.co.uk>2015-11-26 09:30:58 +0000
commitc581080b9af6ea30c1ee0fdbab7c49a9b3431977 (patch)
tree475b9f5ef189a868822335170f33dd6d593237e4 /morphlib
parentdf7437d9e97c12cf5e88c37cfed7748c3ff6f12e (diff)
downloadmorph-c581080b9af6ea30c1ee0fdbab7c49a9b3431977.tar.gz
Fix displaying the help for extensions
Also, add integration tests to prevent regressions. Change-Id: I80421112382168a71ca69e4bafe3c3a174e7f9ef
Diffstat (limited to 'morphlib')
-rw-r--r--morphlib/app.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/morphlib/app.py b/morphlib/app.py
index 8fd52a46..f5871d17 100644
--- a/morphlib/app.py
+++ b/morphlib/app.py
@@ -427,9 +427,12 @@ class Morph(cliapp.Application):
text = '%s\n\n%s' % (usage, description)
self.output.write(text)
elif topic in extensions.list_extensions():
+ definitions_repo = morphlib.definitions_repo.open(
+ '.', False, self)
name, kind = os.path.splitext(topic)
try:
with extensions.get_extension_filename(
+ definitions_repo,
name,
kind + '.help', executable=False) as fname:
with open(fname, 'r') as f: