anlib: fix cli context overriding