Fix: format + PACKAGE_URL for dynamic printing
[lttng-tools.git] / src / bin / lttng / commands / version.c
index a6bbd6aece3c7a9e674705ddda560dd4bcd0e39b..0b90fa172951efe87d11654b6394a82ce7b86ffc 100644 (file)
@@ -44,8 +44,9 @@ static struct poptOption long_options[] = {
  */
 static void usage(FILE *ofp)
 {
-       fprintf(ofp, "usage: lttng version\n");
+       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");
@@ -77,9 +78,10 @@ int cmd_version(int argc, const char **argv)
                }
        }
 
-       MSG("lttng version " VERSION " - " VERSION_NAME);
-       MSG("Web site: http://lttng.org/");
-       MSG("\nlttng is free software and under the GPL license and part LGPL");
+       MSG("LTTng version " VERSION " - " VERSION_NAME);
+       MSG("\n" VERSION_DESCRIPTION "\n");
+       MSG("Web site: " PACKAGE_URL "\n");
+       MSG("LTTng is free software and under the GPL license and part LGPL");
 
 end:
        poptFreeContext(pc);
This page took 0.032623 seconds and 4 git commands to generate.