From 2ac909b51f542a876a058f7210c846f9fc53cc19 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 25 Dec 2006 02:40:14 +0000 Subject: Fix up some text escaping errors. Add wikitext output for docgen. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 809 --- man/docgen | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 88 insertions(+), 15 deletions(-) (limited to 'man/docgen') diff --git a/man/docgen b/man/docgen index c83cb901..f9bf1a6e 100755 --- a/man/docgen +++ b/man/docgen @@ -1,5 +1,22 @@ #!/usr/bin/env python - +# +# Command line parameter self-documentation tool. Reads comments from +# the source code in the following form: +# +# //! +# // @arg +# // @category Category +# // @platform 1 and sys.argv[1] == "-m": + manpage_output() +elif len(sys.argv) > 1 and sys.argv[1] == "-w": + wiki_output() +else: + print "%s [ -m | -w ]" % sys.argv[0] -- cgit v1.2.3