Detect if task was present among cli args


(guai) #1

Is there a way to distinguish which tasks were typed in by user and which come from dependencies?
To make something like this:

task myCleanTask {
    onlyIf { explicitlyForcedByUser }
    doSomething()
}