Support the ongoing development of Laravel.io →
Requests Input Validation
Last updated 1 year ago.
0

Giviz,

value required doesn't mean that providing that option is required. You see, there's no such thing as required option, option by definition is... optional.

Required option value means that you cannot run your command this way:

yourcommand --youroption

If you need to have value that always must be provided, use arguments. They are meant for that.

0

Oh, shame on me, you're so right ^^

I've started with options as I'd like to put the commands args in any order.

I've done it the wrong way :D

Thanks !

0

Sign in to participate in this thread!

Eventy

Your banner here too?

giviz giviz Joined 9 Jan 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.