Pols

I wrote a wrapping-class over Slop (Simple Lightweight Option Parser).
Mine is called: Pols (Parse Optio Lectori Salutem)

This is how it is used..

require 'pols'

# Usage ==========================

# --name|-n (type: String, default: 'olle')
# --edit|-e (type: String)
# --delete|-d (type: String)
# --verbose|-b (type: Bool)
# --test|-x (type: Bool)
# --number|-u (type: Int, required)

pols = Pols.new {
  str :name, default: 'olle'
  str :edit, :delete
  flg :verBose, :test_x
  int :nUmber, required: true
}.to_obj

p pols[:number] if pols.edit?
p pols[:name]