From 92a8705c204b12b275d731797f9eb30fc26f41ee Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Sat, 7 Feb 2015 23:49:31 +0100 Subject: [PATCH] Beautified output. --- usetaglib.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/usetaglib.cpp b/usetaglib.cpp index 8c04a55..25c0d8d 100644 --- a/usetaglib.cpp +++ b/usetaglib.cpp @@ -78,7 +78,7 @@ int action_printTags (const TagLib::FileRef f, TagLib::PropertyMap &propmap) longest = i->first.size(); } } - cout << "-- TAG (properties) --" << endl; + cout << "----[ TAGS ]----" << endl; for(TagLib::PropertyMap::ConstIterator i = propmap.begin(); i != propmap.end(); ++i) { for(TagLib::StringList::ConstIterator j = i->second.begin(); j != i->second.end(); ++j) { cout << i->first << "=" << *j << endl; @@ -96,7 +96,7 @@ int action_printAudio (const TagLib::FileRef f) TagLib::AudioProperties *properties = f.audioProperties(); int seconds = properties->length() % 60; int minutes = (properties->length() - seconds) / 60; - cout << "-- AUDIO --" << endl; + cout << "----[ AUDIO PROPERTIES ]----" << endl; cout << "BITRATE=" << properties->bitrate() << endl; cout << "SAMPLERATE=" << properties->sampleRate() << endl; cout << "CHANNELS=" << properties->channels() << endl; @@ -121,7 +121,7 @@ void printHelp () " If multiple actions are specified they are executed in given order.\n" "\n" " -l, --list list all tags (implicit if no action given)\n" - " -a, --audio show audio information\n" + " -a, --audio show audio properties\n" " -e, --erase=TAGNAME erase tag TAGNAME\n" " -r, --replace=TAGNAME=TAGVAL replace tag TAGNAME with value TAGVAL\n" " -i, --insert=TAGNAME=TAGVAL insert tag TAGNAME with value TAGVAL\n"; @@ -227,7 +227,11 @@ int main(int argc, char *argv[]) requestedActions.push_back( make_pair(LIST, "") ); for(int i = optind; i < argc; i++) { - cout << "******************** \"" << argv[i] << "\" ********************" << endl; + cout << " _________________________________________ _ _ _" << endl; + cout << "/" << endl; + cout << " " << argv[i] << endl; + cout << "\\_________________________________________ _ _ _" << endl; + TagLib::FileRef f(argv[i]); if(f.isNull()) -- 2.39.5