diff --git a/sphinx/cmdline.py b/sphinx/cmdline.py index 0a1cab7dd..5a7eafb40 100644 --- a/sphinx/cmdline.py +++ b/sphinx/cmdline.py @@ -75,11 +75,14 @@ def main(argv): nocolor() try: - opts, args = getopt.getopt(argv[1:], 'ab:t:d:c:CD:A:ng:NEqQWw:PThv', + opts, args = getopt.getopt(argv[1:], 'ab:t:d:c:CD:A:nNEqQWw:PThv', ['help', 'version']) allopts = set(opt[0] for opt in opts) if '-h' in allopts or '--help' in allopts: usage(argv) + print >>sys.stderr + print >>sys.stderr, 'For more information, see '\ + '.' return 0 if '--version' in allopts: print 'Sphinx (sphinx-build) %s' % __version__