add option metaflac --show-all-tags
Signed-off-by: Harald Dunkel [email protected] I would like to suggest to add an option --show-all-tags to metaflac, listing all tags found in the header. The functionality is already in the code. This patch adds just a command line option to use it.
Sample:
% metaflac --show-all-tags Kraftwerk/Autobahn/01_Autobahn.flac
ARTIST=Kraftwerk
TRACKNUMBER=01
ALBUM=Autobahn
TITLE=Autobahn
GENRE=Electronic
DATE=1974
Is there any difference to metaflac --export-tags-to=- or was that option unknown to you?
I heard about this before, but it is not intuitive to use and hard to find in the man page. There are options --remove-tag and --remove-all-tags, but next to --show-tag there is no --show-all-tags.
I'd rather not duplicate functionality. I see two ways to do this.
- drop most of this patch, and simply add text to the man page for option
--show-tagsuggesting to use--export-tags-to=-to show all tags - minimize this patch by making
--show-all-tagsan alias for--export-tags-to=-, implementing this alias in options.c
@harridu Are you still planning to do anything with this PR?
I added a commit simplifying this PR.
Note to self: I still need to add a test for --export-tags-to=- and --show-all-tags, but that would conflict with #504, so I should probably wait with that until that one is merged.