When a command-line task is executed it would be very helpful to have the command logged. This helps diagnose issues with packages such as ci_hsc and validate_drp.
This is trivial when the task is executed from the command line, e.g. add the following to ArgumentParser:
It is a bit trickier if the command is executed by code that calls CmdLineTask.parseAndRun directly; the arguments are readily available but determining the task will require introspection.