allow not passing any "query" argument if you pass a filter argument (and use a default "pass all AST nodes through to the filter" query in that case)
mess with clap configuration to try and improve --help/error messages
To test:
You should be able to build + run example filters (I added a new one which at least limits the AST node types that it produces matches for, I didn't try running in non-query mode for one of the existing ones but that is presumably a lot of AST nodes matched) with or without also passing a query argument
Per the tests the output produced by clap eg when doing --help, not passing required arguments or passing an unrecognized argument shouldn't be too insane/unhelpful
In this PR:
clap
configuration to try and improve--help
/error messagesTo test: You should be able to build + run example filters (I added a new one which at least limits the AST node types that it produces matches for, I didn't try running in non-query mode for one of the existing ones but that is presumably a lot of AST nodes matched) with or without also passing a query argument Per the tests the output produced by
clap
eg when doing--help
, not passing required arguments or passing an unrecognized argument shouldn't be too insane/unhelpful