argbash icon indicating copy to clipboard operation
argbash copied to clipboard

Treat accepted values for one-of:s as regex

Open jonasandero opened this issue 6 years ago • 1 comments

Proposal: It would be nice if one could use regex as values in the last argument to ARG_TYPE_GROUP_SET.

While at it, another option is to add yet another argument - the name of a validation function that would be invoked or a statement that would be evaluated.

jonasandero avatar Feb 13 '19 07:02 jonasandero

This is somehow trickier than the static set of one-of values, consider e.g. bash completion. Could you please share us the use case for this feature?

matejak avatar Mar 09 '19 22:03 matejak