MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / handle_args

Function handle_args

tools/PythonExtensionChecker.py:1266–1281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1264 options.generate_pxd, options.verbose)
1265
1266def handle_args():
1267 usage = "Python extension checker. Run to identify classes and functions that have not been wrapped yet in pyOpenMS. Make sure you run 'make doc_xml' in the build path (--bin_path) first."
1268
1269 parser = argparse.ArgumentParser(description = usage )
1270 parser.add_argument("--bin_path", dest="bin_path", default=".", help="OpenMS build path")
1271 parser.add_argument("--src_path", dest="src_path", default=".", help="OpenMS source path")
1272 parser.add_argument("--ignore-file", dest="ignorefile", default="", help="Checker ignore file")
1273 parser.add_argument("--pxds-out", dest="pxds_out", default="", help="Folder to write pxd files")
1274 parser.add_argument("--generate_pxd_for", dest="generate_pxd", default="", help="Generate pxd file onyl for this class, then exit")
1275 parser.add_argument("--output", dest="output_format", default="text", help="Output format (valid are 'xml', 'text', 'text-quiet', 'text-verbose' for text or ctest XML format)")
1276 parser.add_argument('--print_pxd', action='store_true', default=False)
1277 parser.add_argument('--verbose', action='store_true', default=False, help="Be verbose")
1278 # print ("Usage: checker.php <OpenMS src path> <OpenMS build path> [-u \"user name\"] [-t test] [options]\n";)
1279
1280 args = parser.parse_args(sys.argv[1:])
1281 return args
1282
1283if __name__=="__main__":
1284 options = handle_args()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected