-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add sub-options to command info object provided by RegisterProv… #39
Conversation
下班回家临时写的..
|
26c18c7
to
68c2910
Compare
src/interfaces.d.ts
Outdated
@@ -23,11 +23,15 @@ export interface CommandParams { | |||
description?: string | |||
} | |||
|
|||
export type OptionType = BooleanConstructor | StringConstructor | NumberConstructor | ArrayConstructor | |||
export type OptionType = BooleanConstructor | StringConstructor | NumberConstructor | ArrayConstructor | [StringConstructor] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
arg 这个包允许的 OptionType 其实没有 ArrayConstructor.
如果要传数组需要通过 [String]
这种形式声明类型
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@unix 维特聚聚贴贴.. 有空看下哈 |
能提一个 Issue 聊一下 Feature 的具体变化、原因和使用场景吗 |
PR Checklist
rebase
commitsChange information
Extract subOptions metadata when RegisterProvider as Command Class constructor params.
support help like this
emit help info like this