We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 574a024 commit a9a35c3Copy full SHA for a9a35c3
pybind11/__main__.py
@@ -2,6 +2,7 @@
2
from __future__ import annotations
3
4
import argparse
5
+import functools
6
import re
7
import sys
8
import sysconfig
@@ -49,7 +50,10 @@ def print_includes() -> None:
49
50
51
52
def main() -> None:
- parser = argparse.ArgumentParser()
53
+ make_parser = functools.partial(argparse.ArgumentParser, allow_abbrev=False)
54
+ if sys.version_info >= (3, 14):
55
+ make_parser = functools.partial(make_parser, color=True, suggest_on_error=True)
56
+ parser = make_parser()
57
parser.add_argument(
58
"--version",
59
action="version",
0 commit comments