MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / parse_args

Function parse_args

misc/python/materialize/cli/lint.py:22–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def parse_args() -> argparse.Namespace:
23 parser = argparse.ArgumentParser(
24 prog="lint",
25 formatter_class=argparse.RawDescriptionHelpFormatter,
26 description="Lint the code",
27 )
28 parser.add_argument(
29 "--print-duration", action=argparse.BooleanOptionalAction, default=True
30 )
31 parser.add_argument("--verbose", action="store_true")
32 parser.add_argument("--offline", action="store_true")
33 return parser.parse_args()
34
35
36def main() -> int:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected