Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run query on a single file #355

Open
meain opened this issue Sep 8, 2023 · 2 comments
Open

Cannot run query on a single file #355

meain opened this issue Sep 8, 2023 · 2 comments

Comments

@meain
Copy link
Contributor

meain commented Sep 8, 2023

When trying to run a query tree-grepper -q go '...' main.go runs it on all files in the dir recursively instead of just main.go. --show-tree however works on a single file.

@BrianHicks
Copy link
Owner

BrianHicks commented Sep 8, 2023 via email

@meain
Copy link
Contributor Author

meain commented Sep 18, 2023

Looks like it is because of num_args here. I guess I could just flip the args for now (ie: tree-grepper main.go -q go '...').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants