Skip to content

Commit

Permalink
Merge pull request #10527 from wiktorkuchta/toploop
Browse files Browse the repository at this point in the history
toplevel: show "#help;; for help" in startup message
  • Loading branch information
Octachron committed Oct 21, 2021
2 parents f8dc1ef + 5a44941 commit 54e10a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ Working version
- #10565: Toplevel value printing: truncate strings only after 8 bytes.
(Wiktor Kuchta, review by Xavier Leroy)

- #10527: Show "#help;; for help" at toplevel startup
(Wiktor Kuchta, review by David Allsopp and Florian Angeletti)

### Debugging:

- #10517, #10594: when running ocamldebug on a program linked with the
Expand Down
2 changes: 1 addition & 1 deletion toplevel/toploop.ml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ let loop ppf =
Clflags.debug := true;
Location.formatter_for_warnings := ppf;
if not !Clflags.noversion then
fprintf ppf " OCaml version %s%s%s@.@."
fprintf ppf "OCaml version %s%s%s@.Enter #help;; for help.@.@."
Config.version
(if Topeval.implementation_label = "" then "" else " - ")
Topeval.implementation_label;
Expand Down

0 comments on commit 54e10a5

Please sign in to comment.