read targets from stdin

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
fix help message --local -> --query

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>