api doc for cli
added global option to cli api doc
Merge pull request #21 from usgin/cli_doc

api doc for cli. fix #17