summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--archivist/cli.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archivist/cli.py b/archivist/cli.py
index 0c74e3b..1455a5d 100644
--- a/archivist/cli.py
+++ b/archivist/cli.py
@@ -175,7 +175,7 @@ def fetch_tags(tag_list, ignore_missing=False):
@click.argument('name', type = TAG)
@click.argument('description', required = False)
def add_tag(name, description):
- created, tag = create_tag(name, description)
+ tag, created = create_tag(name, description)
if not created:
print("Tag already existed:", tag)
@@ -214,7 +214,7 @@ def doc():
@doc.command('add')
@click.argument('file', type=click.File(mode = 'rb'))
-@click.argument('tags', type = TAG, nargs = -1)
+@click.argument('tags', type=TAG, nargs=-1)
@click.option('--create-tags', '-c', is_flag = True)
@click.option('--ignore-missing-tags', '-i', is_flag = True)
def add_doc(file, tags, create_tags, ignore_missing_tags):
@@ -228,7 +228,7 @@ def add_doc(file, tags, create_tags, ignore_missing_tags):
if create_tags:
tags = [create_tag(tag)[0] for tag in tags]
else:
- tags = fetch_Tags(tags, ignore_missing_tags)
+ tags = fetch_tags(tags, ignore_missing_tags)
mimetype = magic.from_file(file.name, mime=True)