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

[5.5] Allow Default Value for Command Array Input. #18572

Merged
merged 4 commits into from
Apr 1, 2017
Merged

[5.5] Allow Default Value for Command Array Input. #18572

merged 4 commits into from
Apr 1, 2017

Conversation

CupOfTea696
Copy link
Contributor

This PR allows console command signature to define input array with default value.

Signature would be as follows:

  • command:name {argument=*default} {--option=*default}
  • command:name {argument=*default1,default2} {--option=*default1,default2}

@CupOfTea696
Copy link
Contributor Author

Wasn't sure to send this to 5.4 or 5.5, let me know if I should send it to 5.4.

@lucasmichot
Copy link
Contributor

Tests?

@CupOfTea696
Copy link
Contributor Author

@lucasmichot There were no tests for default values at all so I didn't make any for this case either. I could do.

@lucasmichot
Copy link
Contributor

I suppose they were missing, see: #18573
Yeah would be great to have some for this PR

@taylorotwell
Copy link
Member

Can we add tests for this now?

@CupOfTea696
Copy link
Contributor Author

@taylorotwell Added tests :)

@taylorotwell taylorotwell merged commit 717e24d into laravel:master Apr 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants