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

pet search [flags] <string> to query with an initial value (without option -q/--query) #73

Open
marcelpaulo opened this issue Feb 10, 2018 · 0 comments

Comments

@marcelpaulo
Copy link

marcelpaulo commented Feb 10, 2018

As a suggestion, I believe it's a more natural syntax, like grep for instance, for searching a snippet, to use the first argument after the options as the initial search string, like this:

pet search [other-flags] <string>

instead of, currently:

pet search [other-flags] --query <string>

If there's a string after all options have been processed, it's natural to expect it to be the search string.

So, if I wanted to search for copy, the command would be:

pet search copy

It feels more natural to me, more alike any other search command, such as grep and locate. The option --query feels unnecessary in this context.

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

1 participant