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 2533802 commit a5c5c03Copy full SHA for a5c5c03
src/replit_river/codegen/run.py
@@ -38,6 +38,13 @@ def main() -> None:
38
action="store_true",
39
default=False,
40
)
41
+ client.add_argument(
42
+ "--protocol-version",
43
+ help="Generate river v2 clients",
44
+ action="store",
45
+ default="v1.1",
46
+ choices=["v1.1", "v2.0"],
47
+ )
48
client.add_argument("schema", help="schema file")
49
args = parser.parse_args()
50
@@ -62,7 +69,7 @@ def file_opener(path: Path) -> TextIO:
62
69
client_name=args.client_name,
63
70
typed_dict_inputs=args.typed_dict_inputs,
64
71
file_opener=file_opener,
65
- protocol_version="v1.1",
72
+ protocol_version=args.protocol_version,
66
73
67
74
else:
68
75
raise NotImplementedError(f"Unknown command {args.command}")
0 commit comments