'Add a -p/--path option to display the path instead of the default
format.
By default this affects both items and albums. If add_album_option()
is used then the target will be autodetected.
Sets the format property to u\'$path\' on the options extracted from the
CLI.'

def add_path_option(self, flags=('-p', '--path')):

    path = optparse.Option(nargs=0, action='callback', callback=self._set_format, callback_kwargs={'fmt': u'$path', 'store_true': True}, help=u'print    paths    for    matched    items    or    albums', *flags)
    self.add_option(path)
