MCPcopy Create free account
hub / github.com/FLC777/GLAT / get_parser

Function get_parser

scripts/read_binarized.py:12–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11
12def get_parser():
13 parser = argparse.ArgumentParser(
14 description="writes text from binarized file to stdout"
15 )
16 # fmt: off
17 parser.add_argument('--dataset-impl', help='dataset implementation',
18 choices=indexed_dataset.get_available_dataset_impl())
19 parser.add_argument('--dict', metavar='FP', help='dictionary containing known words', default=None)
20 parser.add_argument('--input', metavar='FP', required=True, help='binarized file to read')
21 # fmt: on
22
23 return parser
24
25
26def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected