-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make --quiet and --banner independent (fix #23380) #23399
Conversation
dd21ccf
to
88a4024
Compare
I'm fine with either way but I'm not really convinced that we really need the |
You may be right. Now we have both options available to merge. |
I think a good option is to remove the terminal warning; then these two command-line options collapse to one. |
What's the likelihood that we'll have other REPL initialization warnnings? In any case though, since this is basically a REPL only option so the easiness to type in a terminal matters more (compare to other options) and so I would prefer an option with a shortform. |
This strategy seems logical, also remaining consistent with other languages. For example, IPython uses very similar flags, although their
If logging is added into |
Having |
Two-letter short options are a non-starter. With this PR, you can use |
Since this does make |
Ok, I'm fine with this. I buy the |
88a4024
to
1804da5
Compare
1804da5
to
92f70e2
Compare
Unless I'm missing something, did this PR make banner suppression the default?
:/ |
Oops. That was not the intention. Will fix. |
This might fix it: diff --git a/base/client.jl b/base/client.jl
index 3f2f434bf9..b3600669d8 100644
--- a/base/client.jl
+++ b/base/client.jl
@@ -394,7 +394,7 @@ function _start()
term = Terminals.TTYTerminal(get(ENV, "TERM", @static Sys.iswindows() ? "" : "dumb"), STDIN, STDOUT, STDERR)
global is_interactive = true
color_set || (global have_color = Terminals.hascolor(term))
- banner && REPL.banner(term,term)
+ (banner || is_interactive) && REPL.banner(term,term)
if term.term_type == "dumb"
active_repl = REPL.BasicREPL(term)
quiet || warn("Terminal not fully functional") |
Yeah, that probably works too. |
I think what you have in your PR is more correct. Thanks for jumping on that! |
Well, I did break it after all. We can't have the banner not printing. There has always been a banner. |
fix PR #23399 accidentally turning off banner
This allows
--banner={yes,no}
to be set independently from--quiet
, which, without an explicit--banner
flag implies--banner=no
. Adds tests for both options and their interaction.