fix(api): Fix misleading help texts for funkwhale-manage script
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2507>
This commit is contained in:
parent
85b4845427
commit
59ecd8c6d4
|
@ -26,7 +26,7 @@ class Command(BaseCommand):
|
||||||
script = available_scripts[name]
|
script = available_scripts[name]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise CommandError(
|
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)
|
"list of available scripts".format(name)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ class Command(BaseCommand):
|
||||||
def show_help(self):
|
def show_help(self):
|
||||||
self.stdout.write("")
|
self.stdout.write("")
|
||||||
self.stdout.write("Available scripts:")
|
self.stdout.write("Available scripts:")
|
||||||
self.stdout.write("Launch with: funkwhale-manage <script_name>")
|
self.stdout.write("Launch with: funkwhale-manage script <script_name>")
|
||||||
available_scripts = self.get_scripts()
|
available_scripts = self.get_scripts()
|
||||||
for name, script in sorted(available_scripts.items()):
|
for name, script in sorted(available_scripts.items()):
|
||||||
self.stdout.write("")
|
self.stdout.write("")
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fix help messages for running scripts using funkwhale-manage
|
Loading…
Reference in New Issue