summaryrefslogtreecommitdiff
path: root/sphinx/quickstart.py
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2014-10-04 14:14:31 +0900
committershimizukawa <shimizukawa@gmail.com>2014-10-04 14:14:31 +0900
commitd8087c1808c4d55fbf82d320952d54905777ebcb (patch)
tree69c85c94cb69e51c54f1bc87790ae7ac4e847b53 /sphinx/quickstart.py
parent1cdfb7b69f8dedce4c53c63cd8ca067fec9f17e9 (diff)
downloadsphinx-d8087c1808c4d55fbf82d320952d54905777ebcb.tar.gz
pull request #299 has been merged. Add documentation for sphinx-quickstart options, update a few statement and CHANGES. Closes #1501.
Diffstat (limited to 'sphinx/quickstart.py')
-rw-r--r--sphinx/quickstart.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py
index c37fa109..ce808e6d 100644
--- a/sphinx/quickstart.py
+++ b/sphinx/quickstart.py
@@ -1371,7 +1371,7 @@ def usage(argv, msg=None):
USAGE = """\
Sphinx v%s
-Usage: %%prog [options] folder
+Usage: %%prog [options] [projectdir]
""" % __version__
EPILOG = """\
@@ -1397,9 +1397,8 @@ def main(argv=sys.argv):
nocolor()
parser = optparse.OptionParser(USAGE, epilog=EPILOG,
+ version='Sphinx v%s' % __version__,
formatter=MyFormatter())
- parser.add_option('--version', action='store_true', dest='version',
- help='show version information and exit')
parser.add_option('-q', '--quiet', action='store_true', dest='quiet',
default=False,
help='quiet mode')
@@ -1429,16 +1428,16 @@ def main(argv=sys.argv):
default=False,
help='use epub')
- group = parser.add_option_group('Extensions')
+ group = parser.add_option_group('Extension options')
for ext in EXTENSIONS:
group.add_option('--ext-' + ext, action='store_true',
dest='ext_' + ext, default=False,
- help='add %s extention' % ext)
+ help='enable %s extension' % ext)
group = parser.add_option_group('Makefile and Batchfile creation')
group.add_option('--makefile', action='store_true', dest='makefile',
default=False,
- help='makefile')
+ help='create makefile')
group.add_option('--no-makefile', action='store_true', dest='no_makefile',
default=False,
help='not create makefile')