diff options
| author | J Haigh <debugsteven@gmail.com> | 2023-01-11 11:11:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-11 11:11:56 -0700 |
| commit | 1a993611d2f539eeea272694e5efbb30bdeff04e (patch) | |
| tree | 1728c287f815eb6e961bcca37b0af05773015ee0 /src/bootstrap/bootstrap.py | |
| parent | b22c152958eade17a71d899b29a2d39bcc77aa48 (diff) | |
| download | rust-1a993611d2f539eeea272694e5efbb30bdeff04e.tar.gz rust-1a993611d2f539eeea272694e5efbb30bdeff04e.zip | |
Revert "warn newer available version of the x tool"
Diffstat (limited to 'src/bootstrap/bootstrap.py')
| -rw-r--r-- | src/bootstrap/bootstrap.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index f3998e98583..9cf43fc7a21 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -934,7 +934,8 @@ def main(): if len(sys.argv) > 1 and sys.argv[1] == 'help': sys.argv = [sys.argv[0], '-h'] + sys.argv[2:] - help_triggered = len(sys.argv) == 1 or any(x in ["-h", "--help", "--version"] for x in sys.argv) + help_triggered = ( + '-h' in sys.argv) or ('--help' in sys.argv) or (len(sys.argv) == 1) try: bootstrap(help_triggered) if not help_triggered: |
