Skip to content

Commit 7760472

Browse files
committed
Deep license status change
1 parent 18024c4 commit 7760472

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

examples/client/deactivate_deep_licenses.py

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
'''
22
Purpose: Deactivates Deep Licenses that were detected by Deep License search
33
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+
422
Usage:
523
deactivate_deep_licenses.py --base-url https://your.blackduck.url] [--token-file token.txt]
624
@@ -38,14 +56,14 @@ def set_active(bd, licenses, status=False):
3856

3957
def parse_command_args():
4058

41-
parser = argparse.ArgumentParser("Generate and download reports for projets in a spreadsheet")
59+
parser = argparse.ArgumentParser("deactivate_deep_licenses.py")
4260
parser.add_argument("-u", "--base-url", required=True, help="Hub server URL e.g. https://your.blackduck.url")
4361
parser.add_argument("-t", "--token-file", required=True, help="File containing access token")
4462
parser.add_argument("-p", "--project-name", required=True, help="Project Name")
4563
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 ")
4765
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')
4967
return parser.parse_args()
5068

5169
def main():

0 commit comments

Comments
 (0)