| 29 | |
| 30 | |
| 31 | class 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 | |
| 44 | def build_config(): |