diff --git a/HISTORY.md b/HISTORY.md index 392bab3f49..572d810e91 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,7 @@ ### mlpack ?.?.? ###### ????-??-?? + * Minor Julia and Python documentation fixes (#2373). + * Updated terminal state and fixed bugs for Pendulum environment (#2354, #2369). * Added `EliSH` activation function (#2323). diff --git a/src/mlpack/bindings/julia/print_doc_functions_impl.hpp b/src/mlpack/bindings/julia/print_doc_functions_impl.hpp index 8fb2534f72..da5d051191 100644 --- a/src/mlpack/bindings/julia/print_doc_functions_impl.hpp +++ b/src/mlpack/bindings/julia/print_doc_functions_impl.hpp @@ -475,7 +475,8 @@ inline std::string ProgramCall(const std::string& programName) size_t nonreqInputs = 0; for (auto it = parameters.begin(); it != parameters.end(); ++it) { - if (it->second.input && !it->second.required) + if (it->second.input && !it->second.required && + (it->second.name == "verbose" || !it->second.persistent)) { if (inputs == 0 && nonreqInputs == 0) result << " ; "; diff --git a/src/mlpack/bindings/python/print_doc_functions_impl.hpp b/src/mlpack/bindings/python/print_doc_functions_impl.hpp index 0de6a53126..767e50ce71 100644 --- a/src/mlpack/bindings/python/print_doc_functions_impl.hpp +++ b/src/mlpack/bindings/python/print_doc_functions_impl.hpp @@ -240,7 +240,8 @@ inline std::string ProgramCall(const std::string& programName) bool first = true; for (auto it = parameters.begin(); it != parameters.end(); ++it) { - if (!it->second.input || it->second.persistent) + if (!it->second.input || (it->second.persistent && + it->second.name != "verbose")) continue; if (!first)