MCPcopy Create free account
hub / github.com/OpenAssetIO/OpenAssetIO / create_argparser

Function create_argparser

examples/host/simpleResolver/simpleResolver.py:123–132  ·  view source on GitHub ↗

Creates an argparse for the tool.

()

Source from the content-addressed store, hash-verified

121
122
123def create_argparser():
124 """
125 Creates an argparse for the tool.
126 """
127 parser = argparse.ArgumentParser()
128 parser.add_argument(
129 "traitset", help="A comma separated list of traits to resolve eg: trati1,trait2"
130 )
131 parser.add_argument("entityref", help="An entity reference to resolve")
132 return parser
133
134
135def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected