| Conditions | 1 |
| Total Lines | 19 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python |
||
| 12 | def parse_args(): |
||
| 13 | p = argparse.ArgumentParser() |
||
| 14 | p.add_argument( |
||
| 15 | "--build-config-yaml", required=True, |
||
| 16 | help="YAML file with information about the build configuration. " |
||
| 17 | "e.g.: ~/scap-security-guide/build/build_config.yml" |
||
| 18 | ) |
||
| 19 | p.add_argument( |
||
| 20 | "--product-yaml", required=True, |
||
| 21 | help="YAML file with information about the product we are building. " |
||
| 22 | "e.g.: ~/scap-security-guide/rhel7/product.yml" |
||
| 23 | ) |
||
| 24 | p.add_argument( |
||
| 25 | "--output", required=True) |
||
| 26 | p.add_argument( |
||
| 27 | "scedirs", metavar="SCE_DIR", nargs="+", |
||
| 28 | help="SCE definition scripts to build for the specified product.") |
||
| 29 | args = p.parse_args() |
||
| 30 | return args |
||
| 31 | |||
| 43 |