mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-18 03:58:32 +02:00
Merge 2732ae5419
into 8615679beb
This commit is contained in:
commit
cd7ae3e323
1 changed files with 2 additions and 1 deletions
|
@ -153,7 +153,8 @@ def run(manual_args=None):
|
||||||
|
|
||||||
# If the first textual argument points to a journal file,
|
# If the first textual argument points to a journal file,
|
||||||
# use this!
|
# 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(':', '') if len(args.text) > 0 else None
|
||||||
|
journal_name = first_arg if (args.text and first_arg in config['journals']) else 'default'
|
||||||
|
|
||||||
if journal_name is not 'default':
|
if journal_name is not 'default':
|
||||||
args.text = args.text[1:]
|
args.text = args.text[1:]
|
||||||
|
|
Loading…
Add table
Reference in a new issue