Yes, I can run gradle -Dorg.gradle.daemon.debug=true myTask
without an error.
I can only reproduce your error if I add an incorrect space between org
and gradle
so that it reads
gradle -Dorg .gradle.daemon.debug=true myTask
or omit -Dorg
entirely, which makes sense to cause that error, but I’m also not on Windows.
However, I also only use gradle -Dorg.gradle.debug=true
as it propagates the debug JVM arguments to the correct location for debugging Gradle or a Gradle plugin.