MCPcopy Create free account
hub / github.com/Notgnoshi/generative / parse_args

Function parse_args

tools/render.py:49–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48
49def parse_args():
50 parser = argparse.ArgumentParser(
51 description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter
52 )
53
54 parser.add_argument(
55 "--input",
56 "-i",
57 type=argparse.FileType("r"),
58 default=sys.stdin,
59 help="The WKT/WKB input to parse. Defaults to stdin.",
60 )
61 parser.add_argument(
62 "--axis", action="store_true", default=False, help="Display an XYZ axis on screen"
63 )
64
65 parser.add_argument(
66 "--input-format",
67 "-I",
68 default="wkt",
69 choices=["wkt", "wkb", "flat"],
70 help="The input geometry format. Defaults to WKT.",
71 )
72 parser.add_argument(
73 "-l",
74 "--log-level",
75 type=str,
76 default=DEFAULT_LEVEL,
77 choices=LOG_LEVELS.keys(),
78 help=f"Set the logging output level. Defaults to {DEFAULT_LEVEL}.",
79 )
80
81 return parser.parse_args()
82
83
84def ensure_3d(points):

Callers 1

render.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected