docs: Improve discoverability of atreplinit
(mention it in Manual>"Command-line Interface">"Startup file")
#44103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As @StefanKarpinski said here, "startup files should probably only be for REPL convenience".
However, the manual makes no mention of
atreplinit
, which is the sanctioned way to achieve this.I personally discovered
atreplinit
way too late1. In the linked PR, @clarkevans had a similar experience, and suggested to mentionatreplinit
in thestartup.jl
section of the manual.Which is what this PR does (first commit).
I made two additional, related improvements to the page in question (next two commits):
Add two missing headers, "Parallel mode" and "Startup file".
These now sit along "Using arguments inside scripts" and "Command-line switches for Julia", which were recently introduced:
Manual: Move introduction about command line arguments from "Getting Started" to "Command-line options" #42878
Rename the page from "Command-line Options" to "Command-line Interface",
to reflect the fact that it describes not only command line options.
Footnotes
Namely only after creating a stop-gap solution for running the contents of
startup.jl
in the REPL only, using command line aliases and a custom env var. ↩