From 112ff1861873de1eb2c40b521346ddb3db8b2fd3 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 15 Apr 2025 13:29:31 +0200 Subject: just profile: include subcommand and its arguments As parsing the the command-line is non-trivial, we include all the relevant information about the command line in the profile. This should also include the subcommand. For sake of completeness, we also include the non-option arguments of the subcommand. --- src/buildtool/main/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/buildtool/main/main.cpp') diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 75c7ca73..7a7dc3f4 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -917,6 +917,7 @@ auto main(int argc, char* argv[]) -> int { Profile profile_data(arguments.analysis.profile); if (arguments.analysis.profile) { profile = &profile_data; + (*profile)->SetCLI(arguments); } // If no execution endpoint was given, the client should default to the -- cgit v1.2.3