aboutsummaryrefslogtreecommitdiff
path: root/src/lib/arg.c
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2023-06-09 13:52:14 -0400
committerShav Kinderlehrer <[email protected]>2023-06-09 13:56:16 -0400
commit925ba68c3ca97b8d437f95f3b329b50f43238907 (patch)
tree77938c5d4aa68fb7d06888517f80555b5c475b4b /src/lib/arg.c
parent1577a74d584bc8ea48aaea2adf137dda936247eb (diff)
downloadlat-925ba68c3ca97b8d437f95f3b329b50f43238907.tar.gz
lat-925ba68c3ca97b8d437f95f3b329b50f43238907.zip
Add auto-pager
Diffstat (limited to 'src/lib/arg.c')
-rw-r--r--src/lib/arg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/arg.c b/src/lib/arg.c
index 993f7fa..bb2928c 100644
--- a/src/lib/arg.c
+++ b/src/lib/arg.c
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdnoreturn.h>
+#include <sys/ioctl.h>
#include <unistd.h>
#include "arg.h"
@@ -24,9 +25,10 @@ void help(void) {
"binary\n"
"\t-r print everything (headers, line numbers, etc.) to "
"stdout (or equivalent)\n"
- "\t-p print file with the pager (uses less)\n"
+ "\t-p disable or enable pager (uses less)\n"
"\t-n <name> manually set the name of the file shown in the title\n"
- // "\t-e <program> NONFUNCTIONAL (will be added soon) link extension to lat\n"
+ // "\t-e <program> NONFUNCTIONAL (will be added soon) link extension
+ // to lat\n"
"\t-V show program version\n"
"\t-h display this help text\n\n");
printf("environment:\n"