sindresorhus / grunt-shell

Run shell commands
MIT License
949 stars 126 forks source link

Conflict with grunt-cli 1.3.x #119

Closed henryruhs closed 5 years ago

henryruhs commented 5 years ago

I used to run PHPUnit via Grunt using grunt phpunit what basicly does a grunt shell:phpunit.

Since grunt-cli 1.3.0 the gruntfile option is being passed to the command. As PHPUnit is detecting an invalid option - it cancles the operation.

Fragment of the grunt-shell task:

{
        phpunit:
        {
            command: 'vendor/bin/phpunit ' + grunt.option.flags()
        }
}

Error reported by PHPUnit:

Running "shell:phpunit" (shell) task
PHPUnit 7.4.3 by Sebastian Bergmann and contributors.

unrecognized option --gruntfile
Warning: Command failed: vendor/bin/phpunit --gruntfile=/home/redaxmedia/PhpstormProjects/redaxscript/gruntfile.js
 Use --force to continue.

Could you please remove the --gruntfile option and release a new version?

Thank you

henryruhs commented 5 years ago

Sorry, it was related to grunt.option.flags() ... open issue on https://github.com/gruntjs/grunt-cli/issues/126