make -v|--version display info about optional screens compiled-in

This commit is contained in:
Andrzej Rybczak
2009-09-04 14:41:54 +02:00
parent e5fe4addca
commit d7108caf45

View File

@@ -64,8 +64,25 @@ void ParseArgv(int argc, char **argv)
} }
else if (!strcmp(argv[i], "-v") || !strcmp(argv[i], "--version")) else if (!strcmp(argv[i], "-v") || !strcmp(argv[i], "--version"))
{ {
std::cout << "ncmpcpp version: " << VERSION << std::endl std::cout << "ncmpcpp version: " << VERSION << "\n\n"
<< "built with support for:" << "optional screens compiled-in:\n"
# ifdef HAVE_TAGLIB_H
<< " - tag editor\n"
<< " - tiny tag editor\n"
# endif
# ifdef HAVE_CURL_CURL_H
<< " - artist info\n"
# endif
# ifdef ENABLE_OUTPUTS
<< " - outputs\n"
# endif
# ifdef ENABLE_VISUALIZER
<< " - visualizer\n"
# endif
# ifdef ENABLE_CLOCK
<< " - clock\n"
# endif
<< "\nbuilt with support for:"
# ifdef HAVE_CURL_CURL_H # ifdef HAVE_CURL_CURL_H
<< " curl" << " curl"
# endif # endif