Commit 40d1b438 authored by Felix Flor's avatar Felix Flor

Merge branch 'v2.2.3' into 'master'

added -v and --version as paramter

See merge request code-mesa/aphpbreakdown!15
parents 989dd719 9d9f4a36
# Changelog
## 2.2.4
**NEW**
- Added parameter -v and --version as first Parameter
## 2.2.3
**NEW**
......
......@@ -27,8 +27,6 @@ if(\file_exists($ignoredModulesFile) && \is_readable($ignoredModulesFile)){
system("clear");
echo "Version ".VERSION." from ".BUILD_DATE;
switch($argv[2]){
case "--console-basic":
basicConsoleOutput($filesToCheck);
......
......@@ -15,6 +15,11 @@ namespace APHPBreakdown;
function checkGivenArguments($argv) {
if($argv[1] == '-v' || $argv[1] == '--version'){
echo "APHPBreakdown version ".VERSION." ".BUILD_DATE."\n";
exit(0);
}
if(!is_array($argv))
throw new \Exception ("APHPBreakdown: Invalid parameter type! Must: array, Is: " . gettype($argv));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment