From 3c991eaa2ec600aa29c39c40d918a0f3d1540f13 Mon Sep 17 00:00:00 2001 From: skyjake Date: Mon, 1 Apr 2013 09:57:31 +0300 Subject: [PATCH] Documentation: Cleanup --- doomsday/build/scripts/conhelp.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/doomsday/build/scripts/conhelp.py b/doomsday/build/scripts/conhelp.py index 00117a6d8c..689d6bbe5d 100644 --- a/doomsday/build/scripts/conhelp.py +++ b/doomsday/build/scripts/conhelp.py @@ -1,6 +1,4 @@ -"""Generates a console help file out of Amethyst sources. -1 - output filename -2, ... - subdirs to include""" +"""Generates a console help file out of Amethyst sources.""" import os import sys @@ -17,6 +15,11 @@ def amethyst(input): def makeHelp(outName, components): + """Generates the output file 'outName' out of the Amethyst + sources in the subdirectories listed in 'components'. + - outName: File path of the output file. + - components: List of subdirectories to include in the output.""" + modes = ['command', 'variable'] outFile = file(outName, 'w') @@ -39,4 +42,7 @@ def makeHelp(outName, components): if __name__ == '__main__': + if len(sys.argv) < 3: + print "Usage: (outname) (inputdirs) ..." + sys.exit(0) makeHelp(sys.argv[1], sys.argv[2:])