| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python |
||
| 2 | # |
||
| 3 | # cl-dME.py |
||
| 4 | # |
||
| 5 | # usage: |
||
| 6 | # cl /B1cl-dME.bat main.cpp |
||
| 7 | # cl /BXcl-dME.bat main.cpp |
||
| 8 | |||
| 9 | from argparse import ArgumentParser |
||
| 10 | from argparse import SUPPRESS |
||
| 11 | |||
| 12 | |||
| 13 | def main(): |
||
| 14 | parser = ArgumentParser(add_help=False) |
||
| 15 | parser.add_argument( |
||
| 16 | '-D', |
||
| 17 | dest='defs', |
||
| 18 | action='append', |
||
| 19 | default=[], |
||
| 20 | help=SUPPRESS |
||
| 21 | ) |
||
| 22 | opts, args = parser.parse_known_args() |
||
| 23 | for d in opts.defs: |
||
| 24 | print(d) |
||
| 25 | |||
| 26 | |||
| 27 | if __name__ == "__main__": |
||
| 28 | main() |
||
| 29 |