add optparser and cache
add optparser and cache
Merge pull request #1 from yeyuexia/feature/build_to_script

Feature/build to script