diff --git a/functions.php b/functions.php index 1abae9c..a9ea6ba 100644 --- a/functions.php +++ b/functions.php @@ -6,10 +6,12 @@ $quiet = false; //Check passed options -foreach ($argv as $option) { - if ($option === "--quiet") { - $quiet = true; - } +if(isset($argv)){ + foreach ($argv as $option) { + if ($option === "--quiet") { + $quiet = true; + } + } } const SUCCESS = 'success';