Skip to content

createCmd(cmdStr, options?): object

解析命令行字符串:返回命令、位置参数与 --xxx 选项

Parameters ​

cmdStr ​

string

options? ​

CreateCmdOptions = {}

Returns ​

object

cmd ​

cmd: string | undefined

options ​

options: Record<string, unknown>

params ​

params: string[]

Released under the MIT License with love.