Fix --from, --to option parse bug.
Merge pull request #6 from tri-star/hotfix-from-to-bug

Fix --from, --to option parse bug.