#!/usr/bin/env python3

import typer

from gwmp import parse as gwmp_parse

app = typer.Typer()

DEFAULT_APP_KEY = "00000000000000000000000000000000"
DEFAULT_OUTPUT_FILE = "results.csv"


@app.command()
def parse(input_file: str, out: str = DEFAULT_OUTPUT_FILE, key: str = DEFAULT_APP_KEY):
    typer.echo(f"Parsing file {input_file}")
    typer.echo(f"Saving results to file {out}")
    gwmp_parse(input_file, out, key)


if __name__ == "__main__":
    app()
