mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Shell: Skip rc files when not running interactively
This makes debugging a bit nicer.
This commit is contained in:
committed by
Ali Mohammad Pur
parent
9a6b5a53a7
commit
d01ac59b82
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user