Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gruntfile option is part of grunt.option.flags() #126

Open
henryruhs opened this issue Nov 10, 2018 · 0 comments
Open

gruntfile option is part of grunt.option.flags() #126

henryruhs opened this issue Nov 10, 2018 · 0 comments
Assignees
Labels

Comments

@henryruhs
Copy link

henryruhs commented Nov 10, 2018

Since release 1.3.x the --gruntfile option is part of grunt.option.flags().

This is causing issues while running grunt shell or similar tasks as an unknown option is being passed to an operation that might / will return an error.

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.

Verbose information:

grunt phpunit --verbose
Initializing
Command-line options: --verbose, --gruntfile=/home/redaxmedia/PhpstormProjects/redaxscript/gruntfile.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants