From 59ecd8c6d48947508b06c2b990b16fb083d768f7 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Wed, 21 Jun 2023 09:54:09 +0200 Subject: [PATCH] fix(api): Fix misleading help texts for funkwhale-manage script Part-of: --- api/funkwhale_api/common/management/commands/script.py | 4 ++-- changes/changelog.d/funkwhale-manage_scripts.bugfix | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changes/changelog.d/funkwhale-manage_scripts.bugfix diff --git a/api/funkwhale_api/common/management/commands/script.py b/api/funkwhale_api/common/management/commands/script.py index be94e4eab..ab165f626 100644 --- a/api/funkwhale_api/common/management/commands/script.py +++ b/api/funkwhale_api/common/management/commands/script.py @@ -26,7 +26,7 @@ class Command(BaseCommand): script = available_scripts[name] except KeyError: raise CommandError( - "{} is not a valid script. Run funkwhale-manage for a " + "{} is not a valid script. Run funkwhale-manage script for a " "list of available scripts".format(name) ) @@ -43,7 +43,7 @@ class Command(BaseCommand): def show_help(self): self.stdout.write("") self.stdout.write("Available scripts:") - self.stdout.write("Launch with: funkwhale-manage ") + self.stdout.write("Launch with: funkwhale-manage script ") available_scripts = self.get_scripts() for name, script in sorted(available_scripts.items()): self.stdout.write("") diff --git a/changes/changelog.d/funkwhale-manage_scripts.bugfix b/changes/changelog.d/funkwhale-manage_scripts.bugfix new file mode 100644 index 000000000..de23db89f --- /dev/null +++ b/changes/changelog.d/funkwhale-manage_scripts.bugfix @@ -0,0 +1 @@ +Fix help messages for running scripts using funkwhale-manage