mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
Shell: Skip rc files when not running interactively
This makes debugging a bit nicer.
This commit is contained in:
parent
9a6b5a53a7
commit
d01ac59b82
Notes:
sideshowbarker
2024-07-18 01:43:16 +09:00
Author: https://github.com/timschumi
Commit: d01ac59b82
Pull-request: https://github.com/SerenityOS/serenity/pull/18012
Reviewed-by: https://github.com/alimpfard
1 changed files with 3 additions and 0 deletions
|
@ -186,6 +186,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
parser.set_stop_on_first_non_option(true);
|
||||
parser.parse(arguments);
|
||||
|
||||
if (!file_to_read_from.is_null())
|
||||
skip_rc_files = true;
|
||||
|
||||
if (!format.is_empty()) {
|
||||
auto file = TRY(Core::DeprecatedFile::open(format, Core::OpenMode::ReadOnly));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue