

def star_help(cluster=None, logdir=None, cmdline=None, *args):
    'Help on *commands'
    if args:
        for cmd in args:
            if (not (cmd[0] == '*')):
                cmd = ('*' + cmd)
            if (cmd in commands):
                print('Help for', cmd)
                print(commands[cmd].help_text)
            else:
                print('Unknown command:', cmd)
        return
    for cmd in sorted(commands.keys()):
        func = commands[cmd]
        if (not isinstance(func, StarCommand)):
            print(('%s (old-style) - %s' % (cmdline, func.__doc__)))
            continue
        if func.version:
            print(('%s (%s) - %s' % (cmd, func.version, func.synopsis)))
        else:
            print(('%s - %s' % (cmd, func.synopsis)))

dataset/ETHPy150Open radssh/radssh/radssh/star_commands.py star_help/VarMisuse@144/183 `cmd`->`cmdline`