aboutsummaryrefslogtreecommitdiff
path: root/src/lib/arg.c
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2023-04-19 12:43:54 -0400
committerShav Kinderlehrer <[email protected]>2023-04-19 12:43:54 -0400
commit219075499f0c7307cbf9fb3a6c3561cf6c99aeb0 (patch)
tree7908ce4050229e443077dc9274c532c46a090f25 /src/lib/arg.c
parent23ede20d7cd964d09bebb2df515d4062d7d5e88b (diff)
downloadlat-219075499f0c7307cbf9fb3a6c3561cf6c99aeb0.tar.gz
lat-219075499f0c7307cbf9fb3a6c3561cf6c99aeb0.zip
Fix --help grammarv0.10.1
Diffstat (limited to 'src/lib/arg.c')
-rw-r--r--src/lib/arg.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/lib/arg.c b/src/lib/arg.c
index 09acd12..bef7b49 100644
--- a/src/lib/arg.c
+++ b/src/lib/arg.c
@@ -13,14 +13,15 @@ void help(void) {
printf("%s\n\n", LAT_USAGE);
printf("options:\n"
- "\t-c, --color\t toggle whether to print color or not\n"
- "\t-n, --lines\t toggle whether to print line numbers or not\n"
- "\t-t, --headers\t toggle whether to print file headers or not\n"
- "\t-b, --binary\t toggle whether to force the data to be treated as "
- "binary or not. see examples\n"
- "\t-p, --pager\t print file a pager (less)\n"
+ "\t-c, --color\t toggle color\n"
+ "\t-n, --lines\t toggle line numbers\n"
+ "\t-t, --headers\t toggle file info headers\n"
+ "\t-b, --binary\t toggle binary mode, -b forces binary and -bb forces "
+ "NOT binary\n"
+ "\t-p, --pager\t print file with the pager (uses less)\n"
"\t-V, --version\t show program version\n"
- "\t-h, --help\t display this help text (--help shows additional info)\n\n");
+ "\t-h, --help\t display this help text (--help shows additional "
+ "info)\n\n");
printf("environment:\n"
"\tNO_COLOR, see https://no-color.org/\n\n");
}
@@ -28,8 +29,9 @@ void help(void) {
void examples(void) {
printf(
"examples:\n"
- "\tlat file1\n\t\t print the content of file1 witht default formatting\n"
- "\tlat - file1\n\t\t read from stdin (the '-' character reads from "
+ "\tlat file1\n\t\t print the contents of file1 with the default "
+ "formatting\n"
+ "\tlat - file1\n\t\t read from stdin (the '-' flag reads from "
"stdin) "
"and then print the contents of stdin and file1\n"
"\tlat -nc file1 file2\n\t\t print the contents of file1 and "