From f9710a6e174a3d4a2b8749651a1d8824dca2f439 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 28 May 2015 14:16:57 +0100 Subject: [PATCH] Add help blurb to gendoc.py --- scripts/gendoc.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/gendoc.py b/scripts/gendoc.py index 33bd1fe6..f8ec6316 100755 --- a/scripts/gendoc.py +++ b/scripts/gendoc.py @@ -68,4 +68,15 @@ def main(): cleanup_env() if __name__ == '__main__': + if len(sys.argv) > 1: + # we accept no args, so they don't know what they're doing! + print "gendoc.py - Generate the Matrix specification as HTML." + print "Usage:" + print " python gendoc.py" + print "" + print "The specification can then be found in the gen/ folder." + print "" + print "Requirements:" + print " - This script requires Jinja2 and rst2html (docutils)." + sys.exit(0) main()