From c092cec25ad1322832fbc273165fe2f4a74011a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Lundeg=C3=A5rd=20Kylander?= Date: Sat, 11 Jul 2026 22:12:39 +0200 Subject: [PATCH] Add '--file=' argument --- application/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/main.cpp b/application/main.cpp index ae1b62a..86305a9 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -1,3 +1,4 @@ +#include #include #include @@ -23,6 +24,11 @@ int main(int argc, char* argv[]) arg.with("--help", [&] { print_help(command_line_args_view.appliation_path()); }); + + arg.with("--file=", [](std::filesystem::path file_path) { + const std::string file_contents = core::file_stream::file_contents_as_string(file_path); + std::println("{}", file_contents); + }); } return 0;