diff --git a/build-scripts/profile_tool.py b/build-scripts/profile_tool.py index 1ed1cf10054..235f0f48dd4 100755 --- a/build-scripts/profile_tool.py +++ b/build-scripts/profile_tool.py @@ -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=( diff --git a/docs/manual/developer/05_tools_and_utilities.md b/docs/manual/developer/05_tools_and_utilities.md index 22b31d50380..6033c1365a3 100644 --- a/docs/manual/developer/05_tools_and_utilities.md +++ b/docs/manual/developer/05_tools_and_utilities.md @@ -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. diff --git a/utils/profile_tool/most_used_components.py b/utils/profile_tool/most_used_components.py index 382c87a358d..b3415bd468b 100644 --- a/utils/profile_tool/most_used_components.py +++ b/utils/profile_tool/most_used_components.py @@ -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":