def star_quota(cluster, logdir, cmdline, *args):
    '''Print or set Quota values'''
    if args:
        try:
            cluster.quota.time_limit = float(args[0])
            cluster.quota.byte_limit = int(args[1])
            cluster.quota.line_limit = int(args[2])
        except IndexError:
            pass
    print('Current Quota Settings:')
    if cluster.quota.time_limit:
        print('\tIdle (not Total) Time: %g seconds' % float(cluster.quota.time_limit))
    else:
        print('\tIdle (not Total) Time: Unlimited')
    if cluster.quota.byte_limit:
        print('\tOutput Byte Limit: %d bytes' % cluster.quota.byte_limit)
    else:
        print('\tOutput Byte Limit: Unlimited')
    if cluster.quota.line_limit:
        print('\tOutput Line Limit: %d lines' % cluster.quota.line_limit)
    else:
        print('\tOutput Byte Limit: Unlimited')
dataset/ETHPy150Open radssh/radssh/radssh/star_commands.py/star_quota/original