MCPcopy Create free account
hub / github.com/pytorch/executorch / parse_args

Function parse_args

scripts/pick_doc_commits.py:151–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149
150
151def parse_args() -> argparse.Namespace:
152 parser = argparse.ArgumentParser(
153 description="Prints differences between git branches."
154 )
155 parser.add_argument(
156 "--main",
157 default="origin/main",
158 type=str,
159 help="The name of the main (source) branch to pick commits from.",
160 )
161 parser.add_argument(
162 "--release",
163 type=str,
164 help="The name of the release (destination) branch to pick commits onto, "
165 + "ideally with the 'origin/' prefix",
166 )
167 parser.add_argument(
168 "-v",
169 "--verbose",
170 action="count",
171 default=0,
172 help="Log extra output. Specify more times (-vv) for more output.",
173 )
174 return parser.parse_args()
175
176
177def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected