Hello, I thought the dug logic for "parsing" or building up each query could be simplified, so I split getQuery into multiple functions to improve readability.
I changed toFlag to exit with an error if the flag / query-control is not recognised - I thought this is a better approach to catch typos.
I believe the usage / help text was incorrect and not representative of the parsing logic, so I made a small change there to be more explicit about the fact that the query-type is optional, and zero or more query-control flags can be provided.
Please feel free to make any edits, or close the PR if the changes are not welcome. Thank you
Hello, I thought the
dug
logic for "parsing" or building up each query could be simplified, so I splitgetQuery
into multiple functions to improve readability.I changed
toFlag
to exit with an error if the flag /query-control
is not recognised - I thought this is a better approach to catch typos.I believe the usage / help text was incorrect and not representative of the parsing logic, so I made a small change there to be more explicit about the fact that the
query-type
is optional, and zero or morequery-control
flags can be provided.Please feel free to make any edits, or close the PR if the changes are not welcome. Thank you