CLI: support for wildcards

Addresses gh-911.