pet icon indicating copy to clipboard operation
pet copied to clipboard

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

Open marcelpaulo opened this issue 7 years ago • 0 comments

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.

marcelpaulo avatar Feb 10 '18 12:02 marcelpaulo