@@ -806,7 +806,7 @@ def copy_build_to_webroot(self, http: urllib3.PoolManager) -> None:
806
806
"Publishing done (%s)." , format_seconds (perf_counter () - start_time )
807
807
)
808
808
809
- def should_rebuild (self , force_build : bool ):
809
+ def should_rebuild (self , force : bool ):
810
810
state = self .load_state ()
811
811
if not state :
812
812
logging .info ("Should rebuild: no previous state found." )
@@ -834,7 +834,7 @@ def should_rebuild(self, force_build: bool):
834
834
cpython_sha ,
835
835
)
836
836
return "Doc/ has changed"
837
- if force_build :
837
+ if force :
838
838
logging .info ("Should rebuild: forced." )
839
839
return "forced"
840
840
logging .info ("Nothing changed, no rebuild needed." )
@@ -960,7 +960,7 @@ def parse_args():
960
960
default = Path ("/srv/docs.python.org" ),
961
961
)
962
962
parser .add_argument (
963
- "--force-build " ,
963
+ "--force" ,
964
964
action = "store_true" ,
965
965
help = "Always build the chosen languages and versions, "
966
966
"regardless of existing state." ,
@@ -1083,7 +1083,7 @@ def build_docs(args: argparse.Namespace) -> bool:
1083
1083
builder = DocBuilder (
1084
1084
version , versions , language , languages , cpython_repo , ** vars (args )
1085
1085
)
1086
- built_successfully = builder .run (http , force_build = args .force_build )
1086
+ built_successfully = builder .run (http , force_build = args .force )
1087
1087
if built_successfully :
1088
1088
build_succeeded .add ((version .name , language .tag ))
1089
1089
elif built_successfully is not None :
0 commit comments