From d8087c1808c4d55fbf82d320952d54905777ebcb Mon Sep 17 00:00:00 2001 From: shimizukawa Date: Sat, 4 Oct 2014 14:14:31 +0900 Subject: pull request #299 has been merged. Add documentation for sphinx-quickstart options, update a few statement and CHANGES. Closes #1501. --- sphinx/quickstart.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'sphinx/quickstart.py') 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') -- cgit v1.2.1