Skip to content

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

@marcelpaulo

Description

@marcelpaulo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions