chore: color and suggest_on_error are now default (3.14rc1+) (#2554)

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner
2025-08-14 20:44:05 +02:00
committed by GitHub
parent ff9a284f21
commit 95e827ece1
4 changed files with 5 additions and 21 deletions
+1 -6
View File
@@ -6,17 +6,12 @@
import argparse
import copy
import functools
import json
import sys
from typing import Any
import yaml
make_parser = functools.partial(argparse.ArgumentParser, allow_abbrev=False)
if sys.version_info >= (3, 14):
make_parser = functools.partial(make_parser, color=True, suggest_on_error=True)
parser = make_parser()
parser = argparse.ArgumentParser(allow_abbrev=False)
parser.add_argument("--schemastore", action="store_true", help="Generate schema_store version")
args = parser.parse_args()