MCPcopy Create free account
hub / github.com/django/code.djangoproject.com / get_parser

Function get_parser

noshadows.py:16–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15
16def get_parser():
17 parser = argparse.ArgumentParser(
18 description="Scan trac's CSS files to detect box-shadow rules and generate a stylesheet that resets them."
19 )
20 parser.add_argument("cssfiles", nargs="*", type=Path, help="The CSS files to scan")
21 parser.add_argument(
22 "--outfile",
23 "-o",
24 type=argparse.FileType("w"),
25 default="-",
26 help="Where to write the output",
27 )
28 parser.add_argument("--tests", action="store_true")
29 return parser
30
31
32def tripletwise(iterable): # no relation to Jeff

Callers 1

noshadows.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected