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

Function process_options

tools/python/booking_hotels_quality.py:45–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44
45def 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
66def main():

Callers 1

mainFunction · 0.70

Calls 1

parse_argsMethod · 0.45

Tested by

no test coverage detected