mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add a link to the Sphinx homepage when sphinx-build is called with -h.
This commit is contained in:
parent
4eead33488
commit
7089bd5ff6
@ -75,11 +75,14 @@ def main(argv):
|
|||||||
nocolor()
|
nocolor()
|
||||||
|
|
||||||
try:
|
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'])
|
['help', 'version'])
|
||||||
allopts = set(opt[0] for opt in opts)
|
allopts = set(opt[0] for opt in opts)
|
||||||
if '-h' in allopts or '--help' in allopts:
|
if '-h' in allopts or '--help' in allopts:
|
||||||
usage(argv)
|
usage(argv)
|
||||||
|
print >>sys.stderr
|
||||||
|
print >>sys.stderr, 'For more information, see '\
|
||||||
|
'<http://sphinx-doc.org/>.'
|
||||||
return 0
|
return 0
|
||||||
if '--version' in allopts:
|
if '--version' in allopts:
|
||||||
print 'Sphinx (sphinx-build) %s' % __version__
|
print 'Sphinx (sphinx-build) %s' % __version__
|
||||||
|
Loading…
Reference in New Issue
Block a user