From 4f03e5ae99dea354121a130c779f2a00e90157dd Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 16 Dec 2020 18:17:47 +0100 Subject: [PATCH] Improved help command --- src/sh_edraft/cli/cpl_cli/commands/help.py | 3 ++- src/sh_edraft/cli/cpl_cli/commands/publish/publish.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sh_edraft/cli/cpl_cli/commands/help.py b/src/sh_edraft/cli/cpl_cli/commands/help.py index b9212479..3983cb59 100644 --- a/src/sh_edraft/cli/cpl_cli/commands/help.py +++ b/src/sh_edraft/cli/cpl_cli/commands/help.py @@ -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: diff --git a/src/sh_edraft/cli/cpl_cli/commands/publish/publish.py b/src/sh_edraft/cli/cpl_cli/commands/publish/publish.py index f21c331e..7e72ae3a 100644 --- a/src/sh_edraft/cli/cpl_cli/commands/publish/publish.py +++ b/src/sh_edraft/cli/cpl_cli/commands/publish/publish.py @@ -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: