diff --git a/doc/changelog/09-cli-tools/18448-master+fix18434-coqdoc-external-regression.rst b/doc/changelog/09-cli-tools/18448-master+fix18434-coqdoc-external-regression.rst new file mode 100644 index 000000000000..ac9de01fa631 --- /dev/null +++ b/doc/changelog/09-cli-tools/18448-master+fix18434-coqdoc-external-regression.rst @@ -0,0 +1,6 @@ +- **Fixed:** + Regression in option :g:`--external` of `coqdoc`, whose two arguments + were inadvertently swapped + (`#18448 `_, + fixes `#18434 `_, + by Hugo Herbelin). diff --git a/tools/coqdoc/cmdArgs.ml b/tools/coqdoc/cmdArgs.ml index 8a81fa45180d..310d579d2643 100644 --- a/tools/coqdoc/cmdArgs.ml +++ b/tools/coqdoc/cmdArgs.ml @@ -180,7 +180,7 @@ let args_options = Arg.align [ "--verbose", arg_set (fun p -> { p with quiet = false }), " Verbose mode"; "--no-externals", arg_set (fun p -> { p with externals = false }), " No links to Coq standard library"; - "--external", arg_url_path Index.add_external_library, + "--external", arg_url_path (fun url lp -> Index.add_external_library lp url), "+ set URL for external library "; "--coqlib_url", arg_string (fun p u -> { p with coqlib_url = u }), " Set URL for Coq standard library (default: " ^ Coq_config.wwwstdlib ^ ")";