Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Latest commit

 

History

History
25 lines (18 loc) · 681 Bytes

File metadata and controls

25 lines (18 loc) · 681 Bytes

More advanced command options

You can also pass arrays and objects to your commands and boolean passed multiple times will be counted.

Arrays

You can pass an array just by providing the same option more than once:

$ hadron myApp:someCommand --foo=firstValue --foo=secondValue --foo=thirdValue

foo: ['firstValue', 'secondValue', 'thirdValue']
$ hadron myApp:someCommand -f firstValue -f secondValue -f thirdValue

foo: ['firstValue', 'secondValue', 'thirdValue']

Objects

You can pass objects by using dots:

$ hadron myApp:someCommand --foo.bar=barValue --foo.baz.baq=baqValue

foo: { bar: 'barValue', baz: { baq: 'baqValue' } }