Add --enable-embedded-help option to embed --help messages in binaries
[lttng-tools.git] / src / bin / lttng / commands / load.c
index 338df372f7838583e0f42547340672d7f3ec5be1..ad61849235d74220f5328e7bdc496fcabd6896ba 100644 (file)
@@ -37,6 +37,12 @@ static int opt_load_all;
 
 static const char *session_name;
 
+#ifdef LTTNG_EMBED_HELP
+static const char help_msg[] =
+#include <lttng-load.1.h>
+;
+#endif
+
 enum {
        OPT_HELP = 1,
        OPT_ALL,
@@ -318,6 +324,11 @@ int cmd_load(int argc, const char **argv)
                        MSG("Session has been loaded successfully");
                }
 
+               if (opt_override_session_name) {
+                       MSG("Session name overridden with %s",
+                                       opt_override_session_name);
+               }
+
                if (opt_override_url) {
                        MSG("Session output url overridden with %s", opt_override_url);
                }
This page took 0.025355 seconds and 5 git commands to generate.