()
| 30 | |
| 31 | |
| 32 | def 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 | |
| 44 | def read_languages(strings_name): |