<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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()