|
1 | 1 | '''
|
2 | 2 | Purpose: Deactivates Deep Licenses that were detected by Deep License search
|
3 | 3 |
|
| 4 | +usage: deactivate_deep_licenses.py [-h] -u BASE_URL -t TOKEN_FILE -p PROJECT_NAME -pv VERSION_NAME [-mt MATCH_TYPE] [-nv] [--active] |
| 5 | +
|
| 6 | +options: |
| 7 | + -h, --help show this help message and exit |
| 8 | + -u BASE_URL, --base-url BASE_URL |
| 9 | + Hub server URL e.g. https://your.blackduck.url |
| 10 | + -t TOKEN_FILE, --token-file TOKEN_FILE |
| 11 | + File containing access token |
| 12 | + -p PROJECT_NAME, --project-name PROJECT_NAME |
| 13 | + Project Name |
| 14 | + -pv VERSION_NAME, --version-name VERSION_NAME |
| 15 | + Project Version Name |
| 16 | + -mt MATCH_TYPE, --match-type MATCH_TYPE |
| 17 | + Limit the action to components with specific Match Type |
| 18 | + -nv, --no-verify Disable TLS certificate verification |
| 19 | + --active Status to set deep license to |
| 20 | +
|
| 21 | +
|
4 | 22 | Usage:
|
5 | 23 | deactivate_deep_licenses.py --base-url https://your.blackduck.url] [--token-file token.txt]
|
6 | 24 |
|
@@ -38,14 +56,14 @@ def set_active(bd, licenses, status=False):
|
38 | 56 |
|
39 | 57 | def parse_command_args():
|
40 | 58 |
|
41 |
| - parser = argparse.ArgumentParser("Generate and download reports for projets in a spreadsheet") |
| 59 | + parser = argparse.ArgumentParser("deactivate_deep_licenses.py") |
42 | 60 | parser.add_argument("-u", "--base-url", required=True, help="Hub server URL e.g. https://your.blackduck.url")
|
43 | 61 | parser.add_argument("-t", "--token-file", required=True, help="File containing access token")
|
44 | 62 | parser.add_argument("-p", "--project-name", required=True, help="Project Name")
|
45 | 63 | parser.add_argument("-pv", "--version-name", required=True, help="Project Version Name")
|
46 |
| - parser.add_argument("-mt", "--match-type", required=False, help="Match Type") |
| 64 | + parser.add_argument("-mt", "--match-type", required=False, help="Limit the action to components with specific Match Type ") |
47 | 65 | parser.add_argument("-nv", "--no-verify", action='store_false', help="Disable TLS certificate verification")
|
48 |
| - parser.add_argument("--active", action='store_true', help='Dtatus to set deep license to') |
| 66 | + parser.add_argument("--active", action='store_true', help='Status to set deep license to') |
49 | 67 | return parser.parse_args()
|
50 | 68 |
|
51 | 69 | def main():
|
|
0 commit comments