From 17ea7bb316eef6e0cef8785e6e9c79fc06eb987f Mon Sep 17 00:00:00 2001 From: sagi Date: Mon, 16 Nov 2015 20:41:39 +0000 Subject: [PATCH] comment and simplify things --- letsencrypt/cli.py | 4 ++-- letsencrypt/client.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/letsencrypt/cli.py b/letsencrypt/cli.py index 3e8d4d833..8393d6dd0 100644 --- a/letsencrypt/cli.py +++ b/letsencrypt/cli.py @@ -913,12 +913,12 @@ def prepare_and_parse_args(plugins, args): "security", "--hsts", action="store_true", help="Add the Strict-Transport-Security header to every HTTP response." " Forcing browser to use always use SSL for the domain." - " Defends against SSL Stripping.", dest="hsts") + " Defends against SSL Stripping.", dest="hsts", default=False) helpful.add( "security", "--uir", action="store_true", help="Add the \"Content-Security-Policy: upgrade-insecure-requests\"" " header to every HTTP response. Forcing the browser to use" - " https:// for every http:// resource.", dest="uir") + " https:// for every http:// resource.", dest="uir", default=False) helpful.add( "security", "--strict-permissions", action="store_true", help="Require that all configuration files are owned by the current " diff --git a/letsencrypt/client.py b/letsencrypt/client.py index cc1f2aadb..e3e365bb8 100644 --- a/letsencrypt/client.py +++ b/letsencrypt/client.py @@ -410,6 +410,9 @@ class Client(object): :param options: options to enhancement, e.g. Strict-Transport-Security :type str + :raises .errors.Error: if no installer is specified in the + client. + """ msg = ("We were unable to set up enhancement %s for your server, " "however, we successfully installed your certificate."