def to_h
      {
        "required" => required,
        "short" => short,
        "long" => long,
        "desc" => desc,
        "default" => default,
        "filter" => filter,
        "action" => action,
        "cast" => cast,
        "valid" => valid,
        "validate" => validate
      }.reject {|k, v| v.nil? }
    end
def to_h
      {
        "required" => required,
        "short" => short,
        "long" => long,
        "desc" => desc,
        "default" => default,
        "filter" => filter,
        "action" => action,
        "cast" => cast,
        "valid" => valid,
        "validate" => validate
      }.reject {|k, v| v.nil? }
    end
Returns Option converted to a hash.