Fixes #24

Fixes https://github.com/npm/nopt/issues/24.