import fire


def hello(name="World"):
    """
    python3 all.py hello
    > Hello World
    python3 all.py hello --name Yazid
    > Hello Yazid
    """
    return "Hello %s" % name


def add(x, y):
    """
    python3 all.py add 1 2
    python3 all.py add --x 1 --y 2
    > 3
    """
    return x + y


def multiply(x, y):
    return x * y


if __name__ == '__main__':
    fire.Fire()

import fire


def hello(name="World"):
    """
    python3 all.py hello
    > Hello World
    python3 all.py hello --name Yazid
    > Hello Yazid
    """
    return "Hello %s" % name


def add(x, y):
    """
    python3 all.py add 1 2
    python3 all.py add --x 1 --y 2
    > 3
    """
    return x + y


def multiply(x, y):
    return x * y


if __name__ == '__main__':
    fire.Fire()

python3 all.py hello     > Hello World     python3 all.py hello --name Yazid     > Hello Yazid python3 all.py add 1 2     python3 all.py add --x 1 --y 2     > 3