Skip to content

Commit

Permalink
conditional missing for format_rules
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVavaldi committed Apr 23, 2024
1 parent c72f5e3 commit 741e298
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ int main(int argc, const char *argv[]) {
return 1;
}

if((input_wordlist.empty() || input_rules.empty()) && !(optimize_no_op || optimize_same_op || optimize_similar_op || !compare_rules.empty())) {
if((input_wordlist.empty() || input_rules.empty()) && !(optimize_no_op || optimize_same_op || optimize_similar_op || !compare_rules.empty()) && !format_rules) {
show_usage();
return 1;
}
Expand Down Expand Up @@ -1522,7 +1522,6 @@ int main(int argc, const char *argv[]) {
return 0;
}


if(optimize_no_op || optimize_same_op || (optimize_similar_op || !compare_rule_objects.empty())) {
size_t original_rule_objects_size = rule_objects.size();
std::vector<std::string> test_words;
Expand Down

0 comments on commit 741e298

Please sign in to comment.