aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2018-02-05 09:48:39 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2018-02-05 09:48:39 +0100
commitb88501ae72d14c8e743b908fcb7974592c5aacf1 (patch)
tree639c665fcc26f462b59d6e04ee9b901a7b634116
parentba6e984c8584c3cf55a48fe7544e80a792c7711c (diff)
parent3f24f8e4544f3f8e595c5f1eaba27adbb0aca463 (diff)
downloadDevtools-b88501ae72d14c8e743b908fcb7974592c5aacf1.zip
Devtools-b88501ae72d14c8e743b908fcb7974592c5aacf1.tar.gz
Devtools-b88501ae72d14c8e743b908fcb7974592c5aacf1.tar.bz2
Merge branch 'pr/52' into incoming
-rw-r--r--Bin/Cs.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/Bin/Cs.php b/Bin/Cs.php
index 074f006..5f94376 100644
--- a/Bin/Cs.php
+++ b/Bin/Cs.php
@@ -58,7 +58,8 @@ class Cs extends Console\Dispatcher\Kit
['dry-run', Console\GetOption::NO_ARGUMENT, 'd'],
['diff', Console\GetOption::NO_ARGUMENT, 'D'],
['help', Console\GetOption::NO_ARGUMENT, 'h'],
- ['help', Console\GetOption::NO_ARGUMENT, '?']
+ ['help', Console\GetOption::NO_ARGUMENT, '?'],
+ ['verbose', Console\GetOption::NO_ARGUMENT, 'v']
];
@@ -70,8 +71,9 @@ class Cs extends Console\Dispatcher\Kit
*/
public function main()
{
- $dryRun = false;
- $diff = false;
+ $dryRun = false;
+ $diff = false;
+ $verbose = false;
while (false !== $c = $this->getOption($v)) {
switch ($c) {
@@ -85,6 +87,11 @@ class Cs extends Console\Dispatcher\Kit
break;
+ case 'v':
+ $verbose = true;
+
+ break;
+
case 'D':
$diff = true;
@@ -117,6 +124,9 @@ class Cs extends Console\Dispatcher\Kit
if (true === $dryRun) {
$arguments[] = '--dry-run';
}
+ if (true === $verbose) {
+ $arguments[] = '-vvv';
+ }
if (true === $diff) {
$arguments[] = '--diff';