Skip to content

Commit 37f0976

Browse files
committed
Fix error in handling flags
1 parent 6e67fd4 commit 37f0976

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/main.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,15 @@ fn main() {
181181
println!("{}", entry);
182182
}
183183

184-
if args_open_entry != "" {
184+
if args_open_entry != ""
185+
&& args_tag == ""
186+
&& args_search == ""
187+
&& args_entry == ""
188+
&& args_open == ""
189+
&& !args.open_config
190+
&& !args.print_config
191+
&& !args.gen_report
192+
{
185193
let entry_date_naive = parse_entry_args(args_open_entry);
186194
let entry_date = entry_date_naive.format("%Y-%m-%d").to_string();
187195
if get_entry(entry_date_naive)

0 commit comments

Comments
 (0)