MCPcopy Create free account
hub / github.com/davidblewett/rure-python / argparser

Function argparser

regex/scripts/scrape_crates_io.py:24–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def argparser():
25 p = argparse.ArgumentParser("A script to scrape crates.io for regex.")
26 p.add_argument("-c", "--crates-index", metavar="CRATES_INDEX_DIR",
27 help=("A directory where we can find crates.io-index "
28 + "(if this isn't set it will be automatically "
29 + "downloaded)."))
30 p.add_argument("-o", "--output-file", metavar="OUTPUT",
31 default="crates_regex.rs",
32 help="The name of the output file to create.")
33 return p
34
35
36PRELUDE = """// Copyright 2018 The Rust Project Developers. See the COPYRIGHT

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected