You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for this crate, its premise seems very useful :)
I'm running into an issue though: from_args_with_toml doesn't seem to overwrite toml-specified field values with cli-specified values when the field occurs within an enum variant that represents a #[structopt(subcommand)], e.g.:
It always uses the toml-specified value for bar, ignoring the cli-specified value for `bar!
Also if the cmd is not toml-specified but cli-specified, it returns an error saying that cmd is missing:
missing field cmd at line 1 column 1
Ideally it would merge both toml and CLI values before checking if something is missing. And CLI-specified values for a field should take priority over toml-specified values.
The text was updated successfully, but these errors were encountered:
Hi, thanks for this crate, its premise seems very useful :)
I'm running into an issue though:
from_args_with_toml
doesn't seem to overwrite toml-specified field values with cli-specified values when the field occurs within an enum variant that represents a#[structopt(subcommand)]
, e.g.:It always uses the toml-specified value for
bar
, ignoring the cli-specified value for `bar!Also if the
cmd
is not toml-specified but cli-specified, it returns an error saying thatcmd
is missing:Ideally it would merge both toml and CLI values before checking if something is missing. And CLI-specified values for a field should take priority over toml-specified values.
The text was updated successfully, but these errors were encountered: