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

@ -12,9 +12,10 @@ class Help(CommandBase):
def run(self, args: list[str]):
Console.write_line('Available Commands:')
commands = [
['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.'],
['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.']
]
for name, description in commands:

View File

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