From cfb8309f96ef74293dc7681d14580338261c1135 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sat, 23 Oct 2021 13:02:34 +0200 Subject: [PATCH] cli: load default name for -t --- cli/vgmstream_cli.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/vgmstream_cli.c b/cli/vgmstream_cli.c index 2e64155f..e0baa5d3 100644 --- a/cli/vgmstream_cli.c +++ b/cli/vgmstream_cli.c @@ -87,7 +87,7 @@ static void usage(const char* progname, int is_help) { " -r: reset and output a second file (for reset testing)\n" " -k N: kills (seeks) N samples before decoding (for seek testing)\n" " -K N: kills (seeks) again to N samples before decoding (for seek testing)\n" - " -t file: print tags found in file (for tag testing)\n" + " -t: print !tags found in !tags.m3u (for tag testing)\n" " -T: print title (for title testing)\n" " -D : downmix to (for plugin downmix testing)\n" " -O: decode but don't write to file (for performance testing)\n" @@ -161,7 +161,7 @@ static int parse_config(cli_config* cfg, int argc, char** argv) { optind = 1; /* reset getopt's ugly globals (needed in wasm that may call same main() multiple times) */ /* read config */ - while ((opt = getopt(argc, argv, "o:l:f:d:ipPcmxeLEFrgb2:s:t:Tk:K:hOvD:S:" + while ((opt = getopt(argc, argv, "o:l:f:d:ipPcmxeLEFrgb2:s:tTk:K:hOvD:S:" #ifdef HAVE_JSON "VI" #endif @@ -235,7 +235,7 @@ static int parse_config(cli_config* cfg, int argc, char** argv) { cfg->subsong_index = 1; break; case 't': - cfg->tag_filename = optarg; + cfg->tag_filename = "!tags.m3u"; break; case 'T': cfg->show_title = 1;