special sponsors
Integer
lando.error.handle(error, report) ⇒ Returns the lando options
This means all the options passed in before the --
flag.
Kind: global function
Returns: Integer
- the error code
Since: 3.0.0
Todo
- [ ] make this static and then fix all call sites
Param | Type | Description |
---|---|---|
error | Object | Error object |
report | Boolean | Whether to report the error or not |
Example
// Gets all the pre-global options that have been specified.
const argv = lando.tasks.argv();