diff options
author | sblondon <sblondon@users.noreply.github.com> | 2019-02-20 03:08:20 +0300 |
---|---|---|
committer | Adrien Ferrand <adferrand@users.noreply.github.com> | 2019-02-20 03:08:20 +0300 |
commit | bda840b3eec938829306956a0b3e7d4f691ddac2 (patch) | |
tree | 1dcc177de505145cd173019d32d1ccc895bd8264 | |
parent | 209a0c4d2ce6ddd553326e10e71a012b05027bfe (diff) |
add version parameter when the help message is displayed (#6780)
-rw-r--r-- | certbot/cli.py | 6 |
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()) |