From: Frank Brehm Date: Tue, 20 Mar 2018 14:41:46 +0000 (+0100) Subject: Adding help description X-Git-Tag: 0.1.1~107 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=1d262ab35b2329fb1f31a08e8e4f7bccba8fcaaa;p=pixelpark%2Fcreate-vmware-tpl.git Adding help description --- 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()