Skip to content

Commit

Permalink
Rename flag --used-rules to --rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Honny1 committed May 28, 2024
1 parent ae8087c commit 867e759
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build-scripts/profile_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def parse_most_used_components(subparsers):
default=get_available_products_with_components_root(),
)
parser_most_used_components.add_argument(
"--used-rules",
"--rules",
default=False,
action="store_true",
help=(
Expand Down
4 changes: 2 additions & 2 deletions docs/manual/developer/05_tools_and_utilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ Optionally, you can use this command to limit the statistics for a specific prod
$ ./build-scripts/profile_tool.py most-used-components --products rhel9
```

You can also get a list of the most used components with used rules for the RHEL9 product, you can use the `--used-rules` flag.
You can also get a list of the most used components with used rules for the RHEL9 product, you can use the `--rules` flag.
As shown in this command:

```bash
$ ./build-scripts/profile_tool.py most-used-components --products rhel9 --used-rules
$ ./build-scripts/profile_tool.py most-used-components --products rhel9 --rules
```

The result will be a list of rules with the number of uses in the profiles.
Expand Down
2 changes: 1 addition & 1 deletion utils/profile_tool/most_used_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def command_most_used_components(args):

sorted_components = _sorted_dict_by_num_value(components)
csv_header = "component_name,count_of_profiles"
if args.used_rules:
if args.rules:
csv_header = "component_name,count_of_profiles,used_rules:count_of_profiles"
delim = " "
if args.format == "csv":
Expand Down

0 comments on commit 867e759

Please sign in to comment.