Previously, keys and values are both searched with no option to limit scope to one or the other. This pull adds two flags to grep, one for keys (-k/--keys) and one for values (-v/--values). If either of these are specified, only that part will be searched. Default behavior is preserved to search both keys and values with neither of these flags present.
This pull also makes a small change to surface errors returned by Commands as UserErrors. Previously, these errors were not able to be seen and only a usage was printed. As commands become more complex, this will help direct users to the problem.
Previously, keys and values are both searched with no option to limit scope to one or the other. This pull adds two flags to grep, one for keys (
-k
/--keys
) and one for values (-v
/--values
). If either of these are specified, only that part will be searched. Default behavior is preserved to search both keys and values with neither of these flags present.This pull also makes a small change to surface errors returned by Commands as UserErrors. Previously, these errors were not able to be seen and only a usage was printed. As commands become more complex, this will help direct users to the problem.