feature: separate cli logic
fix: move PROGRAM_VERSION definition
Merge pull request #1 from HAKASHUN/separate-cli

[modify]: separate cli logic from index.js