searchcmd icon indicating copy to clipboard operation
searchcmd copied to clipboard

Arguments in search query are not allowed

Open a-urth opened this issue 9 years ago • 1 comments

First of all want to clarify either this is bug or not. When I try to search something with argument in parentheses ArgumentParser recognises it like argument to searchcmd itself. It is ok?

searchcmd docker run "-P"

searchcmd: error: unrecognized arguments: -P

a-urth avatar Oct 06 '15 07:10 a-urth

It's a bug alright, in argparse: http://stackoverflow.com/questions/16174992/cant-get-argparse-to-read-quoted-string-with-dashes-in-it

A temporary workaround could be to add an extra space:

searchcmd docker run " -P"

jimmyppi avatar Oct 06 '15 16:10 jimmyppi