| 43 | |
| 44 | |
| 45 | def process_options(): |
| 46 | # TODO(mgsergio): Fix description. |
| 47 | parser = argparse.ArgumentParser(description="Download and process booking hotels.") |
| 48 | parser.add_argument("-v", "--verbose", action="store_true", dest="verbose") |
| 49 | parser.add_argument("-q", "--quiet", action="store_false", dest="verbose") |
| 50 | |
| 51 | parser.add_argument("--reference_list", dest="reference_list", help="Path to data files") |
| 52 | parser.add_argument("--sample_list", dest="sample_list", help="Name and destination for output file") |
| 53 | |
| 54 | parser.add_argument("--show", dest="show", default=False, action="store_true", |
| 55 | help="Show graph for precision and recall") |
| 56 | |
| 57 | options = parser.parse_args() |
| 58 | |
| 59 | if not options.reference_list or not options.sample_list: |
| 60 | parser.print_help() |
| 61 | exit() |
| 62 | |
| 63 | return options |
| 64 | |
| 65 | |
| 66 | def main(): |