'Add a -a/--album option to match albums instead of tracks.
If used then the format option can auto-detect whether we\'re setting
the format for items or albums.
Sets the album property on the options extracted from the CLI.'

def add_album_option(self, flags=('-a', '--album')):

    album = optparse.Option(action='store_true', help=u'match    albums    instead    of    tracks', *flags)
    self.add_option(album)
    self._album_flags = set(flags)
