This is an lightweight option parser, which is less than 80 lines short. It has strong validations and a short, clear and easy to use syntax. Feel free to copy all 80 lines (55 lines without validations / empty lines) into your script rather installing the gem.
Gemfile gem 'micro-optparse', '~> 1.2.0'
install gem install micro-optparse