1
Fork 0

pw-top: add missing options to man page and improve --help output

This commit is contained in:
Simon Ruderich 2023-09-04 10:45:55 +02:00 committed by Wim Taymans
parent cacdcc1b62
commit 615f950c2f
2 changed files with 9 additions and 3 deletions

View File

@ -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.

View File

@ -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"