Anvil/bash-argsparse

[New Feature] require option1 OR option2

mxcarron opened this issue · 0 comments

Hi,

Currently require only support 'AND'

argsparse_use_option option1 "desc option1"
argsparse_use_option option2 "desc option2"
argsparse_use_option option2 "desc option3" require:"option1 option2"

=> option3 requires option1 AND option2

It would be nice to have
=> option3 requires option1 OR option2
Or even
=> option3 requiques (option1 AND option2) OR requires (option4 AND option5)