MCPcopy Create free account
hub / github.com/chibohe/text_recognition_toolbox / ArgsParser

Class ArgsParser

program.py:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30
31class ArgsParser(ArgumentParser):
32 def __init__(self):
33 super(ArgsParser, self).__init__(
34 formatter_class=RawDescriptionHelpFormatter)
35 self.add_argument("-c", "--config", help="configuration file to use")
36
37 def parse_args(self, argv=None):
38 args = super(ArgsParser, self).parse_args(argv)
39 assert args.config is not None, \
40 "Please specify --config=configure_file_path."
41 return args
42
43
44def build_config():

Callers 1

build_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected