@@ -125,11 +125,11 @@ def update(flow_name: str | None, live: bool, quiet: bool):
125125 "-o" , "--output-dir" , type = str , required = False ,
126126 help = "The directory to dump the output to." )
127127@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 ,
129129 help = "Use already-cached intermediate data if available. "
130130 "Note that we only reuse existing cached data without updating the cache "
131131 "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 ):
133133 """
134134 Evaluate the flow and dump flow outputs to files.
135135
@@ -139,7 +139,7 @@ def evaluate(flow_name: str | None, output_dir: str | None, use_cache: bool = Tr
139139 fl = _flow_by_name (flow_name )
140140 if output_dir is None :
141141 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 )
143143 fl .evaluate_and_dump (options )
144144
145145_default_server_settings = lib .ServerSettings .from_env ()
0 commit comments