[WIP] improve help message

This commit is contained in:
2024-02-23 18:01:27 +01:00
parent 0b099bab28
commit 343e607c1b
4 changed files with 27 additions and 21 deletions

View File

@ -56,17 +56,16 @@ class SeaManager(ServiceManager):
USAGE = """
Usage:
sea gui <instance>
sea <instance> # the same as sea gui <instance>
sea cli <instance> # the same as old seacmd
sea start <instance> [service] * # the same as old 'monit start sea'
sea restart <instance> [service] *
sea stop <instance> [service] *
sea list [instance] *
sea gui %(ins)s
sea %(ins)s # the same as sea gui <instance>
sea cli %(ins)s # the same as old seacmd
sea start %(ins)s[service] %(remark)s # the same as old 'monit start sea'
sea restart %(ins)s[service] %(remark)s
sea stop %(ins)s[service] %(remark)s
sea list %(optional_ins)s
[service] is empty or one of sea, graph
%s
* wildcards allowed, using '.' to replace 0 or more arbitrary characters in <instance>
%(legend)s
"""
def do_cli(self, ins):