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

Function ok_to_print

tools/python/mixed_to_geojson.py:145–152  ·  view source on GitHub ↗
(options, ftype)

Source from the content-addressed store, hash-verified

143
144
145def ok_to_print(options, ftype):
146 if ftype is not None and options.missing:
147 return False
148 if options.types:
149 t = [s.strip() for s in options.types.split(',')]
150 if ftype not in t:
151 return False
152 return True
153
154
155parser = argparse.ArgumentParser(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected