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

Method parse_args

tools/python/po_parser.py:96–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94
95
96 def parse_args(self):
97 parser = ArgumentParser(
98 description="""
99 A script for parsing strings in the PO format, which is used by our
100 translation partners. The script can pull strings from .po files into
101 categories.txt or strings.txt.
102 """
103 )
104
105 parser.add_argument(
106 "-f", "--folder",
107 dest="folder", required=True,
108 help="""Path to the folder where the PO files are. Required."""
109 )
110
111 parser.add_argument(
112 "-s", "--strings",
113 dest="strings_txt",
114 help="""The path to the strings.txt file. The strings from the po
115 files will be added to that strings.txt file."""
116 )
117
118 parser.add_argument(
119 "-c", "--categories",
120 dest="categories_txt",
121 help="""The path to the categories.txt file. The strings from the po
122 files will be added to that categories.txt file."""
123 )
124 return parser.parse_args()
125
126
127def main():

Callers 15

__init__Method · 0.95
mainFunction · 0.45
read_cl_optionsFunction · 0.45
process_optionsFunction · 0.45
city_radius.pyFile · 0.45
parse_argsFunction · 0.45
mwm_downloader.pyFile · 0.45
process_optionsFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 1

read_cl_optionsFunction · 0.36