Fix bug when a flag/option doesn’t have a value
Add `-v|--version` flag support