From 7c96a09685627a1cf7c105162cf031b78393a90a Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 18 Jul 2013 10:25:43 -0400 Subject: [PATCH] Manpage: cleanup layout of set-session Signed-off-by: Mathieu Desnoyers --- doc/man/lttng.1 | 22 +++++++++++----------- src/bin/lttng/commands/set_session.c | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/man/lttng.1 b/doc/man/lttng.1 index f98a24c1a..d87280283 100644 --- a/doc/man/lttng.1 +++ b/doc/man/lttng.1 @@ -673,23 +673,23 @@ List available domain(s) .RE .PP -.IP "\fBset-session\fP NAME" -.nf +.PP +\fBset-session\fP NAME [OPTIONS] +.RS Set current session name Will change the session name in the .lttngrc file. -.fi .B OPTIONS: -.nf -\-h, \-\-help - Show summary of possible options and commands. -\-\-list-options - Simple listing of options -.fi - -.IP +.TP +.BR "\-h, \-\-help" +Show summary of possible options and commands. +.TP +.BR "\-\-list-options" +Simple listing of options +.RE +.PP .IP "\fBsnapshot\fP ACTION" .nf diff --git a/src/bin/lttng/commands/set_session.c b/src/bin/lttng/commands/set_session.c index 1f79d6cf0..4238016e4 100644 --- a/src/bin/lttng/commands/set_session.c +++ b/src/bin/lttng/commands/set_session.c @@ -45,7 +45,7 @@ static struct poptOption long_options[] = { */ static void usage(FILE *ofp) { - fprintf(ofp, "usage: lttng set-session NAME\n"); + fprintf(ofp, "usage: lttng set-session NAME [OPTIONS]\n"); fprintf(ofp, "\n"); fprintf(ofp, "Options:\n"); fprintf(ofp, " -h, --help Show this help\n"); -- 2.34.1