aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-11-24 09:56:06 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-11-24 09:56:39 +0100
commit6fc9ffafae7471f3ebc3e7a4893af8c7f0160999 (patch)
treebdfc56217ad3adbd906b495fd38fe87f4eeca3de
parent4cca632532d3e315d68768e00549ac2047232e55 (diff)
downloadtoolame-dab-6fc9ffafae7471f3ebc3e7a4893af8c7f0160999.tar.gz
toolame-dab-6fc9ffafae7471f3ebc3e7a4893af8c7f0160999.tar.bz2
toolame-dab-6fc9ffafae7471f3ebc3e7a4893af8c7f0160999.zip
Improve usage screen
-rw-r--r--toolame.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/toolame.c b/toolame.c
index a651149..0aa71bd 100644
--- a/toolame.c
+++ b/toolame.c
@@ -734,7 +734,18 @@ void short_usage (void)
fprintf (stderr, "Toolame-DAB version %s\n (http://opendigitalradio.org)\n",
toolameversion);
fprintf (stderr, "MPEG Audio Layer II encoder for DAB\n\n");
+#if defined(JACK_INPUT) && defined(VLC_INPUT)
fprintf (stderr, "USAGE: %s [options] (<infile>|-j <jackname>|-V <libvlc url>) [output]\n\n", programName);
+#elif defined(JACK_INPUT)
+ fprintf (stderr, "USAGE: %s [options] (<infile>|-j <jackname>) [output]\n\n", programName);
+ fprintf (stderr, "VLC input not compiled in\n");
+#elif defined(VLC_INPUT)
+ fprintf (stderr, "USAGE: %s [options] (<infile>|-V <libvlc url>) [output]\n\n", programName);
+ fprintf (stderr, "JACK input not compiled in\n");
+#else
+ fprintf (stderr, "USAGE: %s [options] <infile> [output]\n\n", programName);
+ fprintf (stderr, "Neither JACK nor libVLC input compiled in\n");
+#endif
fprintf (stderr, "Try \"%s -h\" for more information.\n", programName);
exit (0);
}