File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -935,9 +935,15 @@ def parse_args():
935935 action = "store_true" ,
936936 help = "Run a quick build (only HTML files)." ,
937937 )
938+ parser .add_argument (
939+ "--branch" ,
940+ nargs = "*" ,
941+ metavar = "3.12" ,
942+ deprecated = True ,
943+ help = "Deprecated; use --branches instead." ,
944+ )
938945 parser .add_argument (
939946 "-b" ,
940- "--branch" , # Deprecated
941947 "--branches" ,
942948 nargs = "*" ,
943949 metavar = "3.12" ,
@@ -998,6 +1004,9 @@ def parse_args():
9981004 version_info ()
9991005 sys .exit (0 )
10001006 del args .version
1007+ if args .branch and not args .branches :
1008+ args .branches = args .branch
1009+ del args .branch
10011010 if args .log_directory :
10021011 args .log_directory = args .log_directory .resolve ()
10031012 if args .build_root :
@@ -1049,10 +1058,10 @@ def build_docs(args: argparse.Namespace) -> bool:
10491058 # This runs languages in config.toml order and versions newest first.
10501059 todo = [
10511060 (version , language )
1052- for version in versions .filter (args .branch )
1061+ for version in versions .filter (args .branches )
10531062 for language in reversed (languages .filter (args .languages ))
10541063 ]
1055- del args .branch
1064+ del args .branches
10561065 del args .languages
10571066
10581067 build_succeeded = set ()
You can’t perform that action at this time.
0 commit comments