Optcomplete support

i have no clue yet how to make unittests for this. for usage, read the optcomplet.bash header