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)