| 14 | |
| 15 | |
| 16 | def 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 | |
| 32 | def tripletwise(iterable): # no relation to Jeff |