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

CLI Info Select Index and Show Info for All Results #429

Open
BebeSparkelSparkel opened this issue Jul 2, 2024 · 3 comments
Open

CLI Info Select Index and Show Info for All Results #429

BebeSparkelSparkel opened this issue Jul 2, 2024 · 3 comments

Comments

@BebeSparkelSparkel
Copy link

Usually I want info for not the first result. It would be very helpful to have -i[n] and --info[=n].

It would also be useful to have info for all the results with -I and -INFO.

@ndmitchell
Copy link
Owner

Interesting idea. Given you have --info and --count already, I suggest:

  • hoogle foo --count=3 shows 3 results, name only.
  • hoogle foo --info shows 1 result, full info.
  • hoogle foo --info --count=3 shows 3 results with their full counts.

Of those only the last is a change. Happy to accept a PR to make that adjustment to the command line arguments - should be fairly simple.

@BebeSparkelSparkel
Copy link
Author

Should this be documented in info or count?

@ndmitchell
Copy link
Owner

Probably count. I think just saying defaults to 25, unless used in conjunction with info, in which case defaults to 1. Arguably this new behaviour would be a lot less surprising.

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