added global option to cli api doc