@@ -806,7 +806,7 @@ def copy_build_to_webroot(self, http: urllib3.PoolManager) -> None:
806806 "Publishing done (%s)." , format_seconds (perf_counter () - start_time )
807807 )
808808
809- def should_rebuild (self , force_build : bool ):
809+ def should_rebuild (self , force : bool ):
810810 state = self .load_state ()
811811 if not state :
812812 logging .info ("Should rebuild: no previous state found." )
@@ -834,7 +834,7 @@ def should_rebuild(self, force_build: bool):
834834 cpython_sha ,
835835 )
836836 return "Doc/ has changed"
837- if force_build :
837+ if force :
838838 logging .info ("Should rebuild: forced." )
839839 return "forced"
840840 logging .info ("Nothing changed, no rebuild needed." )
@@ -960,7 +960,7 @@ def parse_args():
960960 default = Path ("/srv/docs.python.org" ),
961961 )
962962 parser .add_argument (
963- "--force-build " ,
963+ "--force" ,
964964 action = "store_true" ,
965965 help = "Always build the chosen languages and versions, "
966966 "regardless of existing state." ,
@@ -1083,7 +1083,7 @@ def build_docs(args: argparse.Namespace) -> bool:
10831083 builder = DocBuilder (
10841084 version , versions , language , languages , cpython_repo , ** vars (args )
10851085 )
1086- built_successfully = builder .run (http , force_build = args .force_build )
1086+ built_successfully = builder .run (http , force_build = args .force )
10871087 if built_successfully :
10881088 build_succeeded .add ((version .name , language .tag ))
10891089 elif built_successfully is not None :
0 commit comments