| Conditions | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python2 |
||
| 16 | def parse_args(): |
||
| 17 | p = argparse.ArgumentParser() |
||
| 18 | p.add_argument("--remediation_type", required=True, |
||
| 19 | help="language or type of the remediations we are combining." |
||
| 20 | "example: ansible") |
||
| 21 | p.add_argument("--build_dir", required=True, |
||
| 22 | help="where is the cmake build directory. pass value of " |
||
| 23 | "$CMAKE_BINARY_DIR.") |
||
| 24 | p.add_argument("--output", type=argparse.FileType("wb"), required=True) |
||
| 25 | p.add_argument("fixdir", metavar="FIX_DIR", |
||
| 26 | help="directory from which we will collect " |
||
| 27 | "remediations to combine.") |
||
| 28 | |||
| 29 | return p.parse_args() |
||
| 30 | |||
| 56 |