MCPcopy Create free account
hub / github.com/espnet/espnet / get_parser

Function get_parser

utils/addjson.py:20–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19
20def get_parser():
21 parser = argparse.ArgumentParser(
22 description="add multiple json values to an input or output value",
23 formatter_class=argparse.ArgumentDefaultsHelpFormatter,
24 )
25 parser.add_argument("jsons", type=str, nargs="+", help="json files")
26 parser.add_argument(
27 "-i",
28 "--is-input",
29 default=True,
30 type=strtobool,
31 help="If true, add to input. If false, add to output",
32 )
33 parser.add_argument("--verbose", "-V", default=0, type=int, help="Verbose option")
34 return parser
35
36
37if __name__ == "__main__":

Callers 1

addjson.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…