Skip to content

Commit

Permalink
Permit --no-check also for new features
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeMartinez committed Sep 29, 2023
1 parent 818eadc commit 8a07e33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/CLI/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ bool parse_info::ParseFile_Input(input_base_uncompressed& SingleFile, input& Inp
}
}

if (!Global.Actions[Action_Check])
if (!Global.Actions[Action_Check] && !Global.Actions[Action_CheckOptionIsSet])
{
cerr << "Info: this is a preview release,\n"
<< " --check is set in order to verify the reversibility.\n"
Expand All @@ -211,7 +211,7 @@ bool parse_info::ParseFile_Input(input_base_uncompressed& SingleFile, input& Inp
break;
default:;
}
if (ForceCheck && !Global.Actions[Action_Check])
if (ForceCheck && !Global.Actions[Action_Check] && !Global.Actions[Action_CheckOptionIsSet])
{
cerr << "Info: this is a preview release,\n"
<< " --check is set in order to verify the reversibility.\n"
Expand All @@ -224,7 +224,7 @@ bool parse_info::ParseFile_Input(input_base_uncompressed& SingleFile, input& Inp
if (SingleFile.ParserCode == Parser_AVI)
{
bool ForceCheck = true; // TODO: remove when we are confident enough
if (ForceCheck && !Global.Actions[Action_Check])
if (ForceCheck && !Global.Actions[Action_Check] && !Global.Actions[Action_CheckOptionIsSet])
{
cerr << "Info: this is a preview release,\n"
<< " --check is set in order to verify the reversibility.\n"
Expand Down

0 comments on commit 8a07e33

Please sign in to comment.