Skip to content

Commit

Permalink
Documentation: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 1, 2013
1 parent 0be19d8 commit 3c991ea
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions 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
Expand All @@ -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')
Expand All @@ -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:])

0 comments on commit 3c991ea

Please sign in to comment.