We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Summary
In query/config, every config group has his default values, we can use structop default to do that, for example:
impl MetaConfig { pub fn default() -> Self { MetaConfig { meta_address: "".to_string(), meta_username: "root".to_string(), meta_password: "".to_string(), rpc_tls_meta_server_root_ca_cert: "".to_string(), rpc_tls_meta_service_domain_name: "localhost".to_string(), } } }
->
impl MetaConfig { pub fn default() -> Self { <Self as StructOpt>::from_iter(&Vec::<&'static str>::new()) } }
The text was updated successfully, but these errors were encountered:
/assignme
Sorry, something went wrong.
#1891 (comment)
We are now using clap v3 to replace structopt. Let's move forward.
xuyifangreeneyes
Successfully merging a pull request may close this issue.
Summary
In query/config, every config group has his default values, we can use structop default to do that, for example:
->
The text was updated successfully, but these errors were encountered: