From eb0a5e5768c2f699cbc1f6395d3c14320d8e730d Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 12 Feb 2021 17:28:41 +0200 Subject: [PATCH] Use the docstring as the CLI description. --- template/__init__.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/template/__init__.py b/template/__init__.py index 7bb9544..ed997ea 100644 --- a/template/__init__.py +++ b/template/__init__.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # pylint: disable=import-error -"""Generate files from Jinja2 templates and environment variables.""" +"""A CLI tool for generating files from Jinja2 templates and environment +variables.""" from __future__ import ( absolute_import, @@ -32,10 +33,7 @@ def render(template_string): def main(): """Main entrypoint.""" - parser = ArgumentParser( - description="""A CLI tool for generating files from Jinja2 templates - and environment variables.""" - ) + parser = ArgumentParser(description=__doc__) parser.add_argument( "filename", help="Input filename", -- GitLab