misc: Add `printattrs` command.