From 1d262ab35b2329fb1f31a08e8e4f7bccba8fcaaa Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 20 Mar 2018 15:41:46 +0100 Subject: [PATCH] Adding help description --- lib/cr_vmware_tpl/app.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/cr_vmware_tpl/app.py b/lib/cr_vmware_tpl/app.py index fe2048e..7437498 100644 --- a/lib/cr_vmware_tpl/app.py +++ b/lib/cr_vmware_tpl/app.py @@ -14,9 +14,10 @@ import os import logging import re import traceback +import textwrap +import argparse # Third party modules -import argparse # Own modules from .errors import FunctionNotImplementedError, PpAppError @@ -28,7 +29,7 @@ from .colored import ColoredFormatter, colorstr from .obj import PpBaseObject -__version__ = '0.1.2' +__version__ = '0.1.3' LOG = logging.getLogger(__name__) @@ -139,6 +140,11 @@ class CrTplApplication(PpBaseObject): ep = self.appname.upper() + '_' self._env_prefix = self.re_anum.sub('_', ep) + self._description = textwrap.dedent('''\ + Creates in the given vSphere environment a template object, + which can be used to spawn different virtual machines. + ''').strip() + self._init_arg_parser() self._perform_arg_parser() -- 2.39.5