Improved help command

This commit is contained in:
Sven Heidemann 2020-12-16 18:17:47 +01:00
parent 39ccc8430e
commit 4f03e5ae99
2 changed files with 4 additions and 3 deletions

View File

@ -15,6 +15,7 @@ class Help(CommandBase):
['build (-b|-B)', 'Prepares files for publishing into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.'], ['build (-b|-B)', 'Prepares files for publishing into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.'],
['help (-h|-H)', 'Lists available commands and their short descriptions.'], ['help (-h|-H)', 'Lists available commands and their short descriptions.'],
['new', 'Creates a new file or package.'], ['new', 'Creates a new file or package.'],
['publish (-p|-P)', 'Prepares files for publishing into an output directory named dist/ at the given output path and executes setup.py. Must be executed from within a workspace directory.'],
['version (-v|-V)', 'Outputs CPL CLI version.'] ['version (-v|-V)', 'Outputs CPL CLI version.']
] ]
for name, description in commands: for name, description in commands:

View File

@ -9,8 +9,8 @@ class Publish(CommandBase):
CommandBase.__init__(self) CommandBase.__init__(self)
self._app = PublishApp() self._app = PublishApp()
self._aliases.append('-b') self._aliases.append('-p')
self._aliases.append('-B') self._aliases.append('-P')
def run(self, args: list[str]): def run(self, args: list[str]):
if len(args) > 0: if len(args) > 0: