

def star_vars(cluster, logdir, cmdline, *args):
    'View or set user-defined session variables'
    if (not args):
        pprint.pprint(cluster.user_vars)
    else:
        var = args[0]
        if (not (var.startswith('%') and var.endswith('%'))):
            print('User variables must start and end with "%"')
            return
        if (args[0] in cluster.user_vars):
            print(('%s is currently set to [%s]' % (args[0], cluster.user_vars[args[0]])))
        else:
            print(('%s is currently not set' % args[0]))
        cluster.user_vars[args[0]] = raw_input(('Enter new setting for "%s" : ' % args[0]))

dataset/ETHPy150Open radssh/radssh/radssh/star_commands.py star_vars/original