kachick/optionalargument

Easy syntax for multiple conflicts

Closed this issue · 1 comments

OptionalArgument.define {
  opt :a
  opt :b
  opt :c
  conflict :c, [:a, :b]
}

Below looks more simple. But I guess this requires lazy definition after block. The implement is a bit annoying for me 😈

OptionalArgument.define {
  opt :a
  opt :b
  opt :c, conflict: [:a, :b]
}