Sometimes, it's useful to be able to act based on whether the subcommand was explicitly called, or it triggered as part of another process.
For instance, when running forge test, this triggers forge build but the user didn't explicitly run it.
In the case above, this would be useful to adjust the output of the command, since a low verbosity like -v might be ok if forge build was explicitly called, but a higher level like -vvvvv would be more suitable for when the output is triggered by forge test.
Component
Forge
Describe the feature you would like
Referring to https://github.com/foundry-rs/foundry/pull/9325#issuecomment-2482602927
Sometimes, it's useful to be able to act based on whether the subcommand was explicitly called, or it triggered as part of another process.
For instance, when running
forge test
, this triggersforge build
but the user didn't explicitly run it.In the case above, this would be useful to adjust the output of the command, since a low verbosity like
-v
might be ok ifforge build
was explicitly called, but a higher level like-vvvvv
would be more suitable for when the output is triggered byforge test
.Additional context
No response