lando/docs

CLI value types

com2 opened this issue · 1 comments

com2 commented

I need to rebuild a number of services but not all. In lando rebuild --help it gives for --service the option value type [array]:

--service, -s Rebuild only the specified services [array]

but I had no idea what that means nor did I see an example. I tried:
lando rebuild -s appserver,pma,mailhog
but it was seen as one string. It took me a while but then I remembered how a bash array is written and tried:
lando rebuild -s {appserver,pma,mailhog}
That worked. May be you could add an example of this in lando build Documentation or dedicate a page that define these types?

pirog commented

@com2 good idea, the actual usage for an array is you pass the flag in multiple times, eg lando rebuild -s service1 -s service2