fix nicos help
This commit is contained in:
7
base.py
7
base.py
@ -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)
|
||||
|
Reference in New Issue
Block a user