Compass helpers for node platforms
Preparing search index...
parseCommandParams
Function parseCommandParams
parseCommandParams
<
T
extends
Record
<
string
,
string
|
number
|
boolean
|
string
[]
>
,
>
(
schema
:
Record
<
keyof
T
,
GetCommandParamOptions
&
{
defaultValue
?:
T
[
keyof
T
]
}
,
>
,
)
:
T
Type Parameters
T
extends
Record
<
string
,
string
|
number
|
boolean
|
string
[]
>
Parameters
schema
:
Record
<
keyof
T
,
GetCommandParamOptions
&
{
defaultValue
?:
T
[
keyof
T
]
}
>
参数模式定义
Returns
T
解析后的参数对象
Description
解析所有命令行参数为对象
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Compass helpers for node platforms
Loading...
参数模式定义