Merge pull request #1303 from matthiasbeyer/imag-diary/fix-list-diary-name-passing
Fix order of evaluation
This commit is contained in:
commit
c2b754dbec
1 changed files with 4 additions and 2 deletions
|
@ -26,8 +26,10 @@ use toml_query::read::TomlValueReadExt;
|
|||
pub fn get_diary_name(rt: &Runtime) -> Option<String> {
|
||||
use libimagdiary::config::get_default_diary_name;
|
||||
|
||||
get_default_diary_name(rt)
|
||||
.or(rt.cli().value_of("diaryname").map(String::from))
|
||||
rt.cli()
|
||||
.value_of("diaryname")
|
||||
.map(String::from)
|
||||
.or_else(|| get_default_diary_name(rt))
|
||||
}
|
||||
|
||||
pub enum Timed {
|
||||
|
|
Loading…
Reference in a new issue