genpolicy: fix settings path flag name

This corrects the warning to point to the \`-j\` flag,
which is the correct flag for the JSON settings file.
Previously, the warning was confusing, as it pointed to
the \`-p\` flag, which specifies to the path for the Rego ruleset.

Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
This commit is contained in:
Moritz Sanft
2024-06-11 13:15:06 +02:00
parent 1c8db85d54
commit 84903c898c

View File

@@ -74,7 +74,7 @@ impl Settings {
debug!("settings = {:?}", &settings);
settings
} else {
panic!("Cannot open file {}. Please copy it to the current directory or specify the path to it using the -p parameter.",
panic!("Cannot open file {}. Please copy it to the current directory or specify the path to it using the -j parameter.",
json_settings_path);
}
}