From: Julien Desfossez Date: Fri, 20 Jul 2012 16:19:18 +0000 (-0400) Subject: Add missing options in help X-Git-Tag: v2.1.0-rc1~70 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=25672d0260dce634e1a249dd97d3cc0b592f34a6;p=lttng-tools.git Add missing options in help Patch from Christian to support the --help option and update to the usage message to show we support -o,--output option. Signed-off-by: Christian Babeux Signed-off-by: Julien Desfossez Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index 338341dda..bdefd1676 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -105,6 +105,7 @@ void usage(void) fprintf(stderr, " -d, --daemonize Start as a daemon.\n"); fprintf(stderr, " -C, --control-port Control port listening (URI)\n"); fprintf(stderr, " -D, --data-port Data port listening (URI)\n"); + fprintf(stderr, " -o, --output Output path for traces (PATH)\n"); fprintf(stderr, " -v, --verbose Verbose mode. Activate DBG() macro.\n"); } @@ -119,6 +120,7 @@ int parse_args(int argc, char **argv) { "control-port", 1, 0, 'C' }, { "data-port", 1, 0, 'D' }, { "daemonize", 0, 0, 'd' }, + { "help", 0, 0, 'h' }, { "output", 1, 0, 'o' }, { "verbose", 0, 0, 'v' }, { NULL, 0, 0, 0 }