From 0c9e0043327b107fb45d43b034d17b4c07675f8e Mon Sep 17 00:00:00 2001 From: Snowyo Date: Sat, 4 Aug 2018 22:39:19 +0200 Subject: [PATCH] args fix --- extractor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extractor.py b/extractor.py index 1289f72..1dd0ac6 100644 --- a/extractor.py +++ b/extractor.py @@ -185,9 +185,9 @@ class Handler(FileSystemEventHandler): if __name__ == "__main__": parser = argparse.ArgumentParser( description='Extract traefik letsencrypt certificates.') - parser.add_argument('FILE', nargs='?', default='acme.json', type=PathType( + parser.add_argument('-c', '--certificate', default='acme.json', type=PathType( exists=True), help='file that contains the traefik certificates (default acme.json)') - parser.add_argument('OUTPUT', nargs='?', default='.', + parser.add_argument('-d', '--directory', default='.', type=PathType(type='dir'), help='output folder') parser.add_argument('-f', '--flat', action='store_true', help='outputs all certificates into one folder')