Skip to content

Commit c71e893

Browse files
committed
Fix '-rules' depreciation message
The message was instructing to use the "--rules" switch which doesn't exist.
1 parent 88eebf1 commit c71e893

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lkql_checker/src/gnatcheck-projects.adb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ package body Gnatcheck.Projects is
12141214
if not Rules_Depreciation_Emitted then
12151215
Error_In_Tty
12161216
("The '-rules' section is now deprecated. You should only " &
1217-
"use the '--rules' and '--rule-file' command-line options.");
1217+
"use the '--rule' and '--rule-file' command-line options.");
12181218
Error_In_Tty
12191219
("You can use the '--emit-lkql-rule-file' flag to " &
12201220
"automatically translate your rule configuration to the " &
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
gnatcheck: The '-rules' section is now deprecated. You should only use the '--rules' and '--rule-file' command-line options.
1+
gnatcheck: The '-rules' section is now deprecated. You should only use the '--rule' and '--rule-file' command-line options.
22
gnatcheck: You can use the '--emit-lkql-rule-file' flag to automatically translate your rule configuration to the new LKQL format.
33
main.adb:3:04: goto statement

0 commit comments

Comments
 (0)