mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Don't ignore first argument to sphinx.apidoc.main
This commit is contained in:
parent
ee3928743b
commit
3e968bb1d4
@ -282,7 +282,7 @@ def is_excluded(root, excludes):
|
||||
return False
|
||||
|
||||
|
||||
def main(argv=sys.argv):
|
||||
def main(argv=sys.argv[1:]):
|
||||
# type: (List[str]) -> int
|
||||
"""Parse and check the command line arguments."""
|
||||
parser = optparse.OptionParser(
|
||||
@ -356,7 +356,7 @@ Note: By default this script will not overwrite already created files.""")
|
||||
dest='ext_' + ext, default=False,
|
||||
help='enable %s extension' % ext)
|
||||
|
||||
(opts, args) = parser.parse_args(argv[1:])
|
||||
(opts, args) = parser.parse_args(argv)
|
||||
|
||||
if opts.show_version:
|
||||
print('Sphinx (sphinx-apidoc) %s' % __display_version__)
|
||||
|
Loading…
Reference in New Issue
Block a user