info: add --summarize option

Closes #409.