mirror of
https://github.com/SnowMB/traefik-certificate-extractor.git
synced 2025-01-18 22:09:33 +08:00
args fix
This commit is contained in:
parent
129e2377a4
commit
0c9e004332
@ -185,9 +185,9 @@ class Handler(FileSystemEventHandler):
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description='Extract traefik letsencrypt certificates.')
|
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)')
|
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')
|
type=PathType(type='dir'), help='output folder')
|
||||||
parser.add_argument('-f', '--flat', action='store_true',
|
parser.add_argument('-f', '--flat', action='store_true',
|
||||||
help='outputs all certificates into one folder')
|
help='outputs all certificates into one folder')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user