From 615f950c2f860502edd8344d97620216eba4a0a5 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 4 Sep 2023 10:45:55 +0200 Subject: [PATCH] pw-top: add missing options to man page and improve --help output --- man/pw-top.1.rst.in | 8 +++++++- src/tools/pw-top.c | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/man/pw-top.1.rst.in b/man/pw-top.1.rst.in index ab8569b1f..0320a2752 100644 --- a/man/pw-top.1.rst.in +++ b/man/pw-top.1.rst.in @@ -155,11 +155,17 @@ OPTIONS -h | --help Show help. +-b | --batch-mode + Run in non-interactive batch mode, similar to top's batch mode. + +-n | --iterations=NUMBER + Exit after NUMBER of batch iterations. Only used in batch mode. + -r | --remote=NAME The name the *remote* instance to monitor. If left unspecified, a connection is made to the default PipeWire instance. ---version +-V | --version Show version information. diff --git a/src/tools/pw-top.c b/src/tools/pw-top.c index b430244bf..6b83dcf36 100644 --- a/src/tools/pw-top.c +++ b/src/tools/pw-top.c @@ -721,8 +721,8 @@ static void show_help(const char *name, bool error) { fprintf(error ? stderr : stdout, "Usage:\n%s [options]\n\n" "Options:\n" - " -b, --batch-mode run in non-interactive batch_mode mode\n" - " -n, --iterations = NUMBER exit on maximum iterations NUMBER\n" + " -b, --batch-mode run in non-interactive batch mode\n" + " -n, --iterations = NUMBER exit after NUMBER batch iterations\n" " -r, --remote Remote daemon name\n" "\n" " -h, --help Show this help\n"