Bazel- can a skylark action read a command-line flag (strict_java_deps)

Viewed 288

I'm working on implementing a feature like Strict Java Deps for rules_scala.
I'd really like to have the ability to configure in runtime if this uses warn or error.

I seem to recall skylark rules can't create and access command-line flags but I don't recall if they can access existing ones?

Main difference is that existing ones are already parsed so maybe they are also passed in some ctx.

1 Answers
Related