Improved help command
This commit is contained in:
parent
39ccc8430e
commit
4f03e5ae99
@ -12,9 +12,10 @@ class Help(CommandBase):
|
|||||||
def run(self, args: list[str]):
|
def run(self, args: list[str]):
|
||||||
Console.write_line('Available Commands:')
|
Console.write_line('Available Commands:')
|
||||||
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.'],
|
['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:
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user