These are chat archives for kbknapp/clap-rs

12th
Jan 2018
Rick Richardson
@rrichardson
Jan 12 2018 00:01
are there any tips to be had for debugging yaml load? I have built what is basically a copy of the example yaml code, I print out the result returned by the yaml! macro and it looks like it successfully parsed the yaml file.. however the next line panics at arg.rs:99 where let arg_settings = y.get(name_yml).unwrap().as_hash().unwrap();
btw, thanks for making such a great and well maintained and documented project
btw, I'm just trying to run cargo run -- --help
Rick Richardson
@rrichardson
Jan 12 2018 00:23
so when it fetches the nth(0) key and then the value with it.. they are key: String("help") value: String("Sets the level of verbosity")
I assume it was expecting a different order or keys.. or some sort of root key..
Rick Richardson
@rrichardson
Jan 12 2018 00:35
I just enumerated the keys, in the BTreeMap passed into from_yaml, and it is only from the args -> verbose sub-object
Rick Richardson
@rrichardson
Jan 12 2018 01:45
looks like this might be related to : kbknapp/clap-rs#1110
Rick Richardson
@rrichardson
Jan 12 2018 15:54
nevermind.. this was PEBCAK