|
|
|
@ -16,14 +16,14 @@
|
|
|
|
|
include_once "$PROJECT_ROOT/php/utils/logging.php";
|
|
|
|
|
|
|
|
|
|
// Read the -v|--verbose option increasing logging verbosity to debug.
|
|
|
|
|
$options = getopt("v", ["verbose", "fast", "no-color"]);
|
|
|
|
|
$options = getopt("vn", ["verbose", "fast", "no-color", "dry-run"]);
|
|
|
|
|
if (isset($options["v"]) or isset($options["verbose"])) {
|
|
|
|
|
$LOGGING_VERBOSITY = LoggingVerbosity::Debug;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isset($options["fast"])) {
|
|
|
|
|
$FAST_FETCH_MODE = true;
|
|
|
|
|
}
|
|
|
|
|
$FAST_FETCH_MODE = (isset($options["fast"]));
|
|
|
|
|
|
|
|
|
|
$DO_DRY_RUN = (isset($options["n"]) || isset($options["dry-run"]));
|
|
|
|
|
|
|
|
|
|
if (isset($options["no-color"])) {
|
|
|
|
|
LoggingVerbosity::$showColor = false;
|
|
|
|
|