saltstack/salt — pull request #1011 by 0xDEC0DE (2012-03-28 04:43:45+00:00)
Title: make "salt-key --list" friendlier to scripts/pipes

This alters the behaviour of the --list flag to take arguments,
e.g., "pre", "accept", "rej", etc. The default behaviour (--list-all)
is unmodified, although it is properly spelled "--list all" now.

This will allow administrators to see the subset of keys they care
about, and get key counts without getting awk involved (unless they
want to)