[Bug]: Cannot run an "aquery" without specifying a target, thus not able to use --skyframe-state option
What happened?
The wrapper around aquery command checks if there are any non-flag arguments provided and if not, presents a prompt to select a preset. This happens even if you explicitly pass --aspect:interactive=false.
Currently the --skyframe-state option requires that you do NOT pass a target. This type of query is used by some tools, namely cdxgen (https://github.com/CycloneDX/cdxgen/issues/531).
Using aspect CLI presents those tools from running bazel aquery --output=textproto --skyframe_state query.
Version
Development (host) and target OS/architectures:
Output of bazel --version:
aspect 5.10.14
Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:
Not relevant
Language(s) and/or frameworks involved:
cdxgen --version
10.9.5
How to reproduce
Run aquery --output=textproto --skyframe_state 0</dev/null will fail, but it should succed without reading anything from standard input.
Any other information?
No response