MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / get_args

Function get_args

tensorflow/contrib/cmake/tools/create_def_file.py:86–97  ·  view source on GitHub ↗

Parse command line.

()

Source from the content-addressed store, hash-verified

84 r"protobuf::internal::ExplicitlyConstructed")
85
86def get_args():
87 """Parse command line."""
88 filename_list = lambda x: x.split(";")
89 parser = argparse.ArgumentParser()
90 parser.add_argument("--input", type=filename_list,
91 help="paths to input libraries separated by semicolons",
92 required=True)
93 parser.add_argument("--output", help="output deffile", required=True)
94 parser.add_argument("--target", help="name of the target", required=True)
95 parser.add_argument("--bitness", help="build target bitness", required=True)
96 args = parser.parse_args()
97 return args
98
99
100def main():

Callers 1

mainFunction · 0.70

Calls 3

add_argumentMethod · 0.80
parse_argsMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected