import typer


def sum_numbers(a: int, b: int):
    return a + b


app = typer.Typer()


@app.command()
def sum(
    a: int = typer.Argument(1, help="The value of the first summand"),
    b: int = typer.Argument(2, help="The value of the second summand"),
):
    """Command that allows you to add two numbers."""
    sum_ab = sum_numbers(a, b)

    print(f"The sum is {sum_ab}")


@app.command()
def compare(
    c: int = typer.Argument(1, help="First number to compare against."),
    d: int = typer.Argument(
        2, help="Second number that is compared against first number."
    ),
):
    """Command that checks whether a number d is greater than a number c."""

    STRING_TRUE = "greater"
    STRING_FALSE = "not greater"

    c_evaluation = STRING_TRUE if d > c else STRING_FALSE

    print(f"{d=} is {c_evaluation} than {c=}")


if __name__ == "__main__":
    app()
