#!/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]