mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-29 14:27:42 +00:00
Abort if the user has given more than one file name.
This commit is contained in:
parent
d313f53d07
commit
36d21732a8
@ -50,7 +50,7 @@ options_c::add_target(const std::string &spec) {
|
||||
void
|
||||
options_c::set_file_name(const std::string &file_name) {
|
||||
if (!m_file_name.empty())
|
||||
mxinfo(boost::format(Y("More than one file name has been given ('%1%' and '%2%').")) % m_file_name % file_name);
|
||||
mxerror(boost::format(Y("More than one file name has been given ('%1%' and '%2%').\n")) % m_file_name % file_name);
|
||||
|
||||
m_file_name = file_name;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user