Scripts using this entry point cannot be included standalone for uses as classes, they will always execute.
But then again, if you're not subclassing Maintenance then why are you bothering to write a class in a command line script?
}
// Wasn't included from the file scope, halt execution (probably wanted the class)
-if( !Maintenance::shouldExecute() ) {
+// If a class is using commandLine.inc (old school maintenance), they definitely
+// cannot be included and will proceed with execution
+if( !Maintenance::shouldExecute() && $maintClass != 'CommandLineInc' ) {
return;
}