From 25634c70277711b4d6d62a8e476ea9f3a4d17bde Mon Sep 17 00:00:00 2001 From: Juan Pablo Garcia Date: Wed, 6 Dec 2017 18:11:56 -0400 Subject: [PATCH] Fix #512 Fixes non default entry creation bug when date is not given. --- jrnl/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jrnl/cli.py b/jrnl/cli.py index 72eff470..360a3d9f 100644 --- a/jrnl/cli.py +++ b/jrnl/cli.py @@ -153,7 +153,8 @@ def run(manual_args=None): # If the first textual argument points to a journal file, # use this! - journal_name = args.text[0] if (args.text and args.text[0] in config['journals']) else 'default' + first_arg = args.text[0].replace(':', '') + journal_name = first_arg if (args.text and first_arg in config['journals']) else 'default' if journal_name is not 'default': args.text = args.text[1:]