Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsblondon <sblondon@users.noreply.github.com>2019-02-20 03:08:20 +0300
committerAdrien Ferrand <adferrand@users.noreply.github.com>2019-02-20 03:08:20 +0300
commitbda840b3eec938829306956a0b3e7d4f691ddac2 (patch)
tree1dcc177de505145cd173019d32d1ccc895bd8264
parent209a0c4d2ce6ddd553326e10e71a012b05027bfe (diff)
add version parameter when the help message is displayed (#6780)
-rw-r--r--certbot/cli.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/certbot/cli.py b/certbot/cli.py
index 31f55711f..398124510 100644
--- a/certbot/cli.py
+++ b/certbot/cli.py
@@ -108,7 +108,7 @@ manage your account with Let's Encrypt:
# This is the short help for certbot --help, where we disable argparse
# altogether
-HELP_USAGE = """
+HELP_AND_VERSION_USAGE = """
More detailed help:
-h, --help [TOPIC] print this message, or detailed help on a topic;
@@ -117,6 +117,8 @@ More detailed help:
all, automation, commands, paths, security, testing, or any of the
subcommands or plugins (certonly, renew, install, register, nginx,
apache, standalone, webroot, etc.)
+
+ --version print the version number
"""
@@ -566,7 +568,7 @@ class HelpfulArgumentParser(object):
usage = SHORT_USAGE
if help_arg == True:
- self.notify(usage + COMMAND_OVERVIEW % (apache_doc, nginx_doc) + HELP_USAGE)
+ self.notify(usage + COMMAND_OVERVIEW % (apache_doc, nginx_doc) + HELP_AND_VERSION_USAGE)
sys.exit(0)
elif help_arg in self.COMMANDS_TOPICS:
self.notify(usage + self._list_subcommands())