summaryrefslogtreecommitdiff
path: root/sphinx/quickstart.py
diff options
context:
space:
mode:
authorTucker Beck <tucker.beck@rentrakmail.com>2016-08-24 12:45:36 -0700
committerTucker Beck <tucker.beck@rentrakmail.com>2016-08-24 12:45:36 -0700
commitae151bbaf6c6d2cb1b937f29d439fdc10f240dcf (patch)
treecfb6a46622566f31749b3ac65327499107063e1f /sphinx/quickstart.py
parentb8807ed9f997279683acb2a8081c5a3e85c58f99 (diff)
downloadsphinx-git-ae151bbaf6c6d2cb1b937f29d439fdc10f240dcf.tar.gz
2894 Fixed argument parsing for quickstart main
The main() funciton in quickstart was ignoring the argv passed as a param, and instead was using the default sys.argv when it was parsing arguments. Fixed this so usage matches other modules like apidoc
Diffstat (limited to 'sphinx/quickstart.py')
-rw-r--r--sphinx/quickstart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py
index cbe90e2a4..789b57bd2 100644
--- a/sphinx/quickstart.py
+++ b/sphinx/quickstart.py
@@ -590,7 +590,7 @@ def main(argv=sys.argv):
# parse options
try:
- opts, args = parser.parse_args()
+ opts, args = parser.parse_args(argv[1:])
except SystemExit as err:
return err.code