import argparse
import os
from stl_plot.plot import main


def parse_args():
    parser = argparse.ArgumentParser()
    parser.add_argument('input_file')
    parser.add_argument('-o', '--output-file')
    args = parser.parse_args()
    if args.output_file is None:
        basename, _ = os.path.splitext(args.input_file)
        args.output_file = basename + '.pdf'
    return args


def script_main():
    main(**vars(parse_args()))

cd6d29ba305ac9b7d8bde3138c63dc0467d943f5
<mask token>

<mask token>


def script_main():
    main(**vars(parse_args()))

<mask token>


def parse_args():
    parser = argparse.ArgumentParser()
    parser.add_argument('input_file')
    parser.add_argument('-o', '--output-file')
    args = parser.parse_args()
    if args.output_file is None:
        basename, _ = os.path.splitext(args.input_file)
        args.output_file = basename + '.pdf'
    return args


def script_main():
    main(**vars(parse_args()))

import argparse
import os
from stl_plot.plot import main


def parse_args():
    parser = argparse.ArgumentParser()
    parser.add_argument('input_file')
    parser.add_argument('-o', '--output-file')
    args = parser.parse_args()
    if args.output_file is None:
        basename, _ = os.path.splitext(args.input_file)
        args.output_file = basename + '.pdf'
    return args


def script_main():
    main(**vars(parse_args()))
