Skip to content

Commit 890ef48

Browse files
committed
Fix an indexing error when using x.py help
1 parent 74e35d2 commit 890ef48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ def main():
830830

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

835835
help_triggered = (
836836
'-h' in sys.argv) or ('--help' in sys.argv) or (len(sys.argv) == 1)

0 commit comments

Comments
 (0)