Option, which does not use any value should be specified as an array value, option with value should
be specified as key-value pair, where key is an option name and value - option value.
Option name will be automatically prefixed with -- in case it has not already.
For example:
php
[
'verbose',
'username' => 'root'
]
public static buildOptions ( array $options ) : string | ||
$options | array | options specification. |
return | string | options string. |