Handle the command line options

def cli_opts():
    """ Handle the command line options """
    parser = argparse.ArgumentParser()

    parser.add_argument(
        "--homeassistant-config",
        type=str,
        required=False,
        dest="config",
        help="Create configuration section for home assistant",)
    parser.add_argument(
        "-f",
        "--filter",
        type=str,
        required=False,
        dest="filter",
        help="Ignore events related with these devices",)
    parser.add_argument(
        "-o",
        "--output",
        type=str,
        required=False,
        dest="output",
        help="Send output to file",)
    parser.add_argument(
        "-v", "--verbose",
        action="store_true",
        dest="verbose",
        help="Verbose output",)
    parser.add_argument('device')

    return parser.parse_args()