mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Add help blurb to gendoc.py
This commit is contained in:
parent
f134728268
commit
f9710a6e17
|
|
@ -68,4 +68,15 @@ def main():
|
||||||
cleanup_env()
|
cleanup_env()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
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()
|
main()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue