@@ -125,11 +125,11 @@ def update(flow_name: str | None, live: bool, quiet: bool):
125
125
"-o" , "--output-dir" , type = str , required = False ,
126
126
help = "The directory to dump the output to." )
127
127
@click .option (
128
- "-c" , "--use -cache" , is_flag = True , show_default = True , default = True ,
128
+ "--cache/--no -cache" , is_flag = True , show_default = True , default = True ,
129
129
help = "Use already-cached intermediate data if available. "
130
130
"Note that we only reuse existing cached data without updating the cache "
131
131
"even if it's turned on." )
132
- def evaluate (flow_name : str | None , output_dir : str | None , use_cache : bool = True ):
132
+ def evaluate (flow_name : str | None , output_dir : str | None , cache : bool = True ):
133
133
"""
134
134
Evaluate the flow and dump flow outputs to files.
135
135
@@ -139,7 +139,7 @@ def evaluate(flow_name: str | None, output_dir: str | None, use_cache: bool = Tr
139
139
fl = _flow_by_name (flow_name )
140
140
if output_dir is None :
141
141
output_dir = f"eval_{ fl .name } _{ datetime .datetime .now ().strftime ('%y%m%d_%H%M%S' )} "
142
- options = flow .EvaluateAndDumpOptions (output_dir = output_dir , use_cache = use_cache )
142
+ options = flow .EvaluateAndDumpOptions (output_dir = output_dir , use_cache = cache )
143
143
fl .evaluate_and_dump (options )
144
144
145
145
_default_server_settings = lib .ServerSettings .from_env ()
0 commit comments