summaryrefslogtreecommitdiff
path: root/sphinx/apidoc.py
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-04-25 13:04:17 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2017-04-25 13:04:17 -0500
commit3e968bb1d4626c9af2b2643ece2563a9dcb8b0b0 (patch)
treef29bb8afc1045a8444fe660f3c15dfb14588a5f5 /sphinx/apidoc.py
parentee3928743beb133aa7549a8420993cc602aa8f72 (diff)
downloadsphinx-git-3e968bb1d4626c9af2b2643ece2563a9dcb8b0b0.tar.gz
Don't ignore first argument to sphinx.apidoc.main
Diffstat (limited to 'sphinx/apidoc.py')
-rw-r--r--sphinx/apidoc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/apidoc.py b/sphinx/apidoc.py
index 24ed874b0..b9a445c95 100644
--- a/sphinx/apidoc.py
+++ b/sphinx/apidoc.py
@@ -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__)