Пример #1
0
def main(args):
    logger.setLevel('INFO')

    if '<height>' in args:
        for ratio in ratios:
            output = "\n" + Formatter.format_line('Height', args['<height>']) + "\n"
            output += Formatter.format_line('Width', float(args['<height>']) * ratio['width']) + "\n"
            output += Formatter.format_line('Length', float(args['<height>']) * ratio['length']) + "\n"
            Formatter.print_res(ratio['name'], output)