Use https in links to the lttng.org website
[lttng-tools.git] / src / bin / lttng / commands / version.c
index 3630950bbcd0eb63b47f99fd86f2e13318f634d6..722804e8e51a875ab5f9f1cd3e6a3b750e02efb2 100644 (file)
 #include <common/mi-lttng.h>
 
 #include "../command.h"
+#include "version.h"
+
+#ifdef LTTNG_EMBED_HELP
+static const char help_msg[] =
+#include <lttng-version.1.h>
+;
+#endif
 
 enum {
        OPT_HELP = 1,
@@ -42,19 +49,6 @@ static struct poptOption long_options[] = {
        {0, 0, 0, 0, 0, 0, 0}
 };
 
-/*
- * usage
- */
-static void usage(FILE *ofp)
-{
-       fprintf(ofp, "usage: lttng version [OPTIONS]\n");
-       fprintf(ofp, "\n");
-       fprintf(ofp, "Options:\n");
-       fprintf(ofp, "  -h, --help               Show this help\n");
-       fprintf(ofp, "      --list-options       Simple listing of options\n");
-       fprintf(ofp, "\n");
-}
-
 /*
  *  create_version
  */
@@ -154,7 +148,6 @@ int cmd_version(int argc, const char **argv)
                        list_cmd_options(stdout, long_options);
                        goto end;
                default:
-                       usage(stderr);
                        ret = CMD_UNDEFINED;
                        goto end;
                }
@@ -166,7 +159,7 @@ int cmd_version(int argc, const char **argv)
                MSG("lttng version " VERSION " - " VERSION_NAME "%s",
                        GIT_VERSION[0] == '\0' ? "" : " - " GIT_VERSION);
                MSG("\n" VERSION_DESCRIPTION "\n");
-               MSG("Web site: http://lttng.org");
+               MSG("Web site: https://lttng.org");
                MSG("\n%s", lttng_license);
        }
 
This page took 0.023196 seconds and 4 git commands to generate.