MCPcopy Create free account
hub / github.com/comaps/comaps / parse_args

Function parse_args

tools/python/tts_languages.py:32–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31
32def parse_args():
33 opt_parser = OptionParser(
34 description="Creates a language.hpp out of the sound.txt file.",
35 usage="python %prog <path_to_sound.txt> <path_to_languages.hpp>",
36 version="%prog 1.0"
37 )
38 (options, args) = opt_parser.parse_args()
39 if len(args) != 2:
40 opt_parser.error("Wrong number of arguments.")
41 return args
42
43
44def read_languages(strings_name):

Callers 1

runFunction · 0.70

Calls 1

parse_argsMethod · 0.45

Tested by

no test coverage detected