fix nicos help

This commit is contained in:
l_samenv 2024-02-26 09:08:55 +01:00
parent a32f1c05f5
commit 9fed0ead11
2 changed files with 10 additions and 10 deletions

View File

@ -414,7 +414,8 @@ class ServiceManager:
ins = None
instances = self.wildcard(ins)
if instances is None:
ins_set = {ins}
# ins_set = {ins}
ins_set = set(self.info)
else:
ins_set = set(instances)
cfginfo = {}
@ -496,9 +497,9 @@ class ServiceManager:
options['remark'] = ' '
wildcards = False
else:
options['legend'] = ' [instance] is empty or one of %s\n' % ', '.join(self.info)
options['legend'] = ' [instance] is empty or one of %s\n' % ', '.join(self.info)
else:
options['legend'] = ' <instance> is one of %s' % ', '.join(self.info)
options['legend'] = ' <instance> is one of %s\n' % ', '.join(self.info)
if wildcards:
options['legend'] += " * wildcards allowed, using '.' to replace 0 or more arbitrary characters in <instance>\n"
print(self.USAGE % options)

View File

@ -55,17 +55,16 @@ class NicosManager(ServiceManager):
Usage:
nicos gui <instance>
nicos <instance> (the same as above)
nicos <instance> (the same as above)
nicos list [<instance>]
nicos start <instance> [<service>] *
nicos restart <instance> [<service>] *
nicos stop <instance> [<service>] *
nicos create <instance> <nr> *
nicos start <instance> [<service>]
nicos restart <instance> [<service>] %(remark)s
nicos stop <instance> [<service>] %(remark)s
nicos create <instance> <nr>
nicos link <instance> (create links to nicos data and scripts)
<service> is one of cache, deamon, poller
%s
* wildcards allowed, using '.' to replace 0 or more arbitrary characters in <instance>
%(legend)s
to be done after the experiment:
nicos copy (copy data and scripts from link)