From 6073445551dc9cd4b513d4dd470395cfb3f08954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=B8rum?= Date: Sat, 8 Jun 2024 13:49:21 +0200 Subject: [PATCH] document the --output in the man page and help text --- docs/pv.1 | 5 +++++ src/main/help.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/docs/pv.1 b/docs/pv.1 index 2165b48..7b9f431 100644 --- a/docs/pv.1 +++ b/docs/pv.1 @@ -344,6 +344,11 @@ invocations in a single, long, pipeline. .SH DATA TRANSFER MODIFIERS .TP +.BI \-o\ FILE \fR,\ \fB\-\-output\ FILE +Write data to +.I FILE +rather than stdout. +.TP .BI \-L\ RATE \fR,\ \fB\-\-rate-limit\ RATE Limit the transfer to a maximum of .I RATE diff --git a/src/main/help.c b/src/main/help.c index 6f60506..0a3eb88 100644 --- a/src/main/help.c +++ b/src/main/help.c @@ -360,6 +360,9 @@ void display_help(void) N_("use cursor positioning escape sequences"), { 0, 0, 0, 0} }, { "", NULL, NULL, NULL, { 0, 0, 0, 0} }, + { "-o", "--output", N_("FILE"), + N_("write output to FILE instead of stdout"), + { 0, 0, 0, 0} }, { "-L", "--rate-limit", N_("RATE"), N_("limit transfer to RATE bytes per second"), { 0, 0, 0, 0} },