sstalle / php7cc

PHP 7 Compatibility Checker
MIT License
1.52k stars 120 forks source link

Specifying output format #109

Open MadalenaP opened 7 years ago

MadalenaP commented 7 years ago

_php7cc -o json /path/to/my/directory/ | jsonpp

-o does not work for me I cannot see the errors. I just take the output of how many files where checked in how much time. Could you please help?

sstalle commented 7 years ago

Please provide the output of the command. Do you see any errors when executing the command without the -o json option?

MadalenaP commented 7 years ago

Hi! When I execute "php7cc index.php " I get the result "Checked 1 file in 0.074 second". When I execute "php7cc -o json index.php" I get the result "[Symfony\Component\Console\Exception\RuntimeException] The "-o" option does not exist.

php7cc [-e|--extensions [EXTENSIONS]] [-x|--except [EXCEPT]] [-l|--level LEVEL] [-r|--relative-paths] [--integer-size INTEGER-SIZE] [--] ()..."

I would like to have the output you show in the ReadMe if possible. Thank you

sstalle commented 7 years ago

It looks like you are using one of the stable releases, but json output option is only available in the latest dev version.

If you have installed php7cc via composer, you can try executing

composer require sstalle/php7cc:dev-master

to update to the latest dev version.

If you have downloaded one of the prebuilt phar packages, then I'm afraid there is no available package for the version that you need. You can build one yourself if you really want to. You can look up the necessary commands under before_deploy section in .travis.yml