From c1b548db8484e757d8fc0623476806507fd7b6ac Mon Sep 17 00:00:00 2001
From: Massimiliano Adamo <maxadamo@gmail.com>
Date: Thu, 10 Sep 2020 18:01:03 +0200
Subject: [PATCH] minor

---
 files/cert2json.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/files/cert2json.py b/files/cert2json.py
index 20ae83e..80c9061 100755
--- a/files/cert2json.py
+++ b/files/cert2json.py
@@ -3,12 +3,12 @@
 """Certbot list 2 json
 
 Usage:
-  cert2json.py --provider <PROVIDER> [default: sectigo_ev | sectigo_ov | letsencrypt]
+  cert2json.py --provider <PROVIDER>
   cert2json.py (-h | --help)
 
 Options:
   -h --help                       Show this screen.
-  -p PROVIDER --provider=PROVIDER Provider
+  -p PROVIDER --provider=PROVIDER Provider [sectigo_ev | sectigo_ov | letsencrypt]
 """
 import json
 import re
@@ -23,8 +23,10 @@ if PROVIDER == "letsencrypt":
     PROVIDER_STRING = 'LetsEncrypt'
 elif PROVIDER == "sectigo_ov":
     PROVIDER_STRING = 'SectiGO OV'
-else:
+elif PROVIDER == "sectigo_ev":
     PROVIDER_STRING = 'SectiGO EV'
+else:
+    print("valid providers are: sectigo_ev, sectigo_ov and letsencrypt")
 
 CMD = '/usr/local/bin/certbot certificates -c /etc/{}/cli.ini'.format(PROVIDER)
 CBOT_CHILD = sp.Popen(CMD, stdout=sp.PIPE, stderr=sp.PIPE, shell=True)
-- 
GitLab