mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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
This commit is contained in:
parent
b8807ed9f9
commit
ae151bbaf6
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user