Skip to content
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

不支持 inline,因此对通过组合式构建的配置结构不友好,会暴露不必要的组合路径 #1

Open
flw-cn opened this issue Jul 4, 2018 · 0 comments

Comments

@flw-cn
Copy link
Owner

flw-cn commented Jul 4, 2018

比如:

type ModuleBaseConfig struct {
    OptionA string
}

type ModuleConfig struct {
    ModuleBaseConfig
    OptionB string
    ...
}

type MainConfig struct {
    Debug bool
    Foo ModuleConfig
}

此时命令行就必须写 --foo.modulebaseconfig.optiona,这样不友好。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant