File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -773,6 +773,9 @@ def build_parser():
773
773
timelimitparser .add_argument (
774
774
"--timeout" , "-t" , type = int , help = "Override the default timeout. Default: 60."
775
775
)
776
+ timelimitparser .add_argument (
777
+ "--no-generate" , "-G" , action = "store_true" , help = "Do not run `generate`."
778
+ )
776
779
777
780
# Test
778
781
testparser = subparsers .add_parser (
@@ -1154,7 +1157,7 @@ def run_parsed_arguments(args):
1154
1157
1155
1158
if action in ["generate" ]:
1156
1159
success &= generate .generate (problem )
1157
- if action in ["all" , "constraints" , "run" ] and not config .args .no_generate :
1160
+ if action in ["all" , "constraints" , "run" , "time_limit" ] and not config .args .no_generate :
1158
1161
# Call `generate` with modified arguments.
1159
1162
old_args = argparse .Namespace (** vars (config .args ))
1160
1163
config .args .jobs = (os .cpu_count () or 1 ) // 2
You can’t perform that action at this time.
0 commit comments