Skip to content

Commit e1e9d43

Browse files
committed
chdman: Treat %t as literal if splitbin is not enabled
1 parent 889f31b commit e1e9d43

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/tools/chdman.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2661,13 +2661,8 @@ static void do_extract_cd(parameters_map &params)
26612661
if (format_type == "t")
26622662
{
26632663
// track number
2664-
replacement = util::string_format("%" + format_part + "d", tracknum+1);
2665-
2666-
if (!is_splitbin)
2667-
{
2668-
util::stream_format(std::cout, "Warning: --%s not specified but track format string detected, enabling automatically\n", OPTION_OUTPUT_SPLIT);
2669-
is_splitbin = true;
2670-
}
2664+
if (is_splitbin)
2665+
replacement = util::string_format("%" + format_part + "d", tracknum+1);
26712666
}
26722667
else
26732668
{

0 commit comments

Comments
 (0)