From 4f39819ae9e50a356d22986110bad086c7c288a5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me>
Date: Fri, 2 Feb 2024 20:03:56 +0100
Subject: [PATCH] AssignmentUnpublish => Fix description in the cli help

---
 .../subcommands/AssignmentPublishUnpublishCommandBase.ts        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/NodeApp/src/commander/assignment/subcommands/AssignmentPublishUnpublishCommandBase.ts b/NodeApp/src/commander/assignment/subcommands/AssignmentPublishUnpublishCommandBase.ts
index acc361c..3c7c1d8 100644
--- a/NodeApp/src/commander/assignment/subcommands/AssignmentPublishUnpublishCommandBase.ts
+++ b/NodeApp/src/commander/assignment/subcommands/AssignmentPublishUnpublishCommandBase.ts
@@ -13,7 +13,7 @@ abstract class AssignmentPublishUnpublishCommandBase extends CommanderCommand {
 
     protected defineCommand() {
         this.command
-        .description('publish an assignment')
+        .description(`${ this.publish ? 'publish' : 'unpublish' } an assignment`)
         .argument('<name or url>', 'name or url (http/s or ssh) of the assignment')
         .option('-f, --force', 'don\'t ask for confirmation')
         .action(this.commandAction.bind(this));
-- 
GitLab