Skip to content

Commit

Permalink
Rollup merge of rust-lang#58680 - varkor:xpy-help-index-error, r=alex…
Browse files Browse the repository at this point in the history
…crichton

Fix an indexing error when using `x.py help`

Fixes rust-lang#58640.
  • Loading branch information
Centril authored Feb 27, 2019
2 parents 9c44efd + 890ef48 commit 08e2d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ def main():

# x.py help <cmd> ...
if len(sys.argv) > 1 and sys.argv[1] == 'help':
sys.argv = sys.argv[:1] + [sys.argv[2], '-h'] + sys.argv[3:]
sys.argv = [sys.argv[0], '-h'] + sys.argv[2:]

help_triggered = (
'-h' in sys.argv) or ('--help' in sys.argv) or (len(sys.argv) == 1)
Expand Down

0 comments on commit 08e2d0d

Please sign in to comment.