aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormetamuffin <yvchraiqi@protonmail.com>2022-06-05 15:02:10 +0200
committermetamuffin <yvchraiqi@protonmail.com>2022-06-05 15:02:10 +0200
commit1b70d7d654bef22661cf3184806175fcb17e1bd6 (patch)
tree36a6b85aa4e23fbf2f06890e509cec7da8084f43 /src
parentca3536ce691e8726ceebbf6c058bd009ebab62ab (diff)
downloadblubcat-1b70d7d654bef22661cf3184806175fcb17e1bd6.tar
blubcat-1b70d7d654bef22661cf3184806175fcb17e1bd6.tar.bz2
blubcat-1b70d7d654bef22661cf3184806175fcb17e1bd6.tar.zst
thing
Diffstat (limited to 'src')
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 757b842..d8c4a21 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -12,8 +12,8 @@ use std::{
};
static HELP: &str = "
-Usage: blubcat PATTERN [FILE]...
-Concatenate FILE(s) to standard output, colorizing the output according to OPTION(s).
+Usage: blubcat [PATTERN] [FILE]...
+Concatenate FILE(s) to standard output, colorizing the output according to PATTERN.
With no FILE, or when FILE is -, the standard input is read.
If PATTERN is repeated only the last one will be used.
@@ -22,7 +22,7 @@ PATTERN:
-R --rainbow Rainbow
-S --sequence <c1,c2,c3,...> Sequences colors on the X-axis
-G --gradient <c1,c2,c3,...> Interpolates the colors on the X-axis
- <PATTERN> <TRANSFORM> Apply TRANSFORM to PATTERN
+ <PATTERN> <TRANSFORM>
<PRESET>
TRANSFORM:
@@ -78,7 +78,7 @@ fn main() -> Result<()> {
])),
}
}
-
+
/* PATTERNS */
"-R" | "--rainbow" => pat = box Extend(box Rainbow),
"-S" | "--sequence" => {