Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit 28e9a4f

Browse files
committed
Fix bugzilla 2011382
1 parent f354d61 commit 28e9a4f

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

oval_graph/command_line_client/arf_to_html.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def __init__(self, args):
1010

1111
def _get_message(self):
1212
return {
13+
'command_name': 'arf-to-graph',
1314
'description': 'Client for visualization of SCAP rule evaluation results',
1415
'source_filename': 'ARF scan file',
1516
}

oval_graph/command_line_client/arf_to_json.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def __init__(self, args):
1313

1414
def _get_message(self):
1515
return {
16+
'command_name': 'arf-to-json',
1617
'description': 'Client for generating JSON of SCAP rule evaluation results',
1718
'source_filename': 'ARF scan file',
1819
}

oval_graph/command_line_client/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def __init__(self, args):
2525
@staticmethod
2626
def _get_message():
2727
return {
28+
'command_name': '',
2829
'description': '',
2930
'source_filename': '',
3031
}
@@ -123,7 +124,7 @@ def _get_wanted_rules(self, rules):
123124

124125
def parse_arguments(self, args):
125126
parser = argparse.ArgumentParser(
126-
prog='oval-graph',
127+
prog=self._get_message().get('command_name'),
127128
description=self._get_message().get('description'))
128129
self.prepare_parser(parser)
129130
if args is None:

oval_graph/command_line_client/json_to_html.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def _get_rows_of_unselected_rules(self):
2727

2828
def _get_message(self):
2929
return {
30+
'command_name': 'json-to-graph',
3031
'description': 'Client for visualization of JSON created by command arf-to-json',
3132
'source_filename': 'JSON file',
3233
}

0 commit comments

Comments
 (0)