Ansible CLI Error

Hi,

I am making a command line interface using Python Click, that would be used to execute the ansible playbooks as specified by the user. I have done all the necessary things to launch the playbook, but it fails with the following error:

File “/usr/lib/python2.7/site-packages/ansible/plugins/callback/init.py”, line 62, in init
self._options = cli.options
AttributeError: ‘MyAppCli’ object has no attribute ‘options’

Can anyone please let me know, what I might be doing wrong ? Any help would be greatly appreciated.

Thank you

BR,
Taseer