ladybird/Userland/Libraries/LibMain/Main.h
Pedro Pereira a436f0c668 LibMain: Rename .arguments to .strings :^)
Before this change, we would need to write arguments.arguments to access
the Span<>, which doesn't feel too pretty.
2021-11-22 22:13:22 +01:00

22 lines
305 B
C++

/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Error.h>
namespace Main {
struct Arguments {
int argc {};
char** argv {};
Span<StringView> strings;
};
}
ErrorOr<int> serenity_main(Main::Arguments);