summaryrefslogtreecommitdiff
path: root/xnt
diff options
context:
space:
mode:
Diffstat (limited to 'xnt')
-rw-r--r--xnt/__init__.py1
-rw-r--r--xnt/xenant.py7
2 files changed, 6 insertions, 2 deletions
diff --git a/xnt/__init__.py b/xnt/__init__.py
index 37abe45..70234a0 100644
--- a/xnt/__init__.py
+++ b/xnt/__init__.py
@@ -6,4 +6,5 @@ def target(fn):
print(fn.__name__ + ":")
return fn()
wrap.decorator = "target"
+ wrap.__doc__ = fn.__doc__
return wrap
diff --git a/xnt/xenant.py b/xnt/xenant.py
index 2a0de1c..fc6cbae 100644
--- a/xnt/xenant.py
+++ b/xnt/xenant.py
@@ -16,7 +16,7 @@ def main():
printVersion()
elif arg == "help":
printVersion()
- print("\n\n")
+ print("\n")
printTargets()
elif arg:
target = arg
@@ -54,7 +54,10 @@ def printTargets():
try:
fa = getattr(build, f)
if fa.decorator == "target":
- print(f + ":\n")
+ print(f + ":")
+ if fa.__doc__:
+ print(fa.__doc__)
+ print("\n")
except AttributeError:
pass
except AttributeError: