Skip --native-tls in pip compile header (#9913)

## Summary

I also omitted `--no-progress` (we omit `--verbose` and `--quiet` --
this seems similar).

Part of: https://github.com/astral-sh/uv/issues/9873.
This commit is contained in:
Charlie Marsh 2024-12-15 09:44:59 -05:00 committed by GitHub
parent 9e2e9f2d10
commit d4c2c46f6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -637,6 +637,18 @@ fn cmd(
return Some(None);
}
// Always skip the `--no-progress` flag.
if arg == "--no-progress" {
*skip_next = None;
return Some(None);
}
// Always skip the `--native-tls` flag.
if arg == "--native-tls" {
*skip_next = None;
return Some(None);
}
// Return the argument.
Some(Some(arg))
})