summaryrefslogtreecommitdiff
path: root/src/commands/cat.c
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-04-30 15:51:58 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-04-30 15:51:58 -0400
commitfa3b1ef74882597d7e809fc0924bf5d66114f535 (patch)
treef6a8b194dfb40cd27bf9a8ab2bb5153b93ccddef /src/commands/cat.c
parentfinish ed (diff)
downloadlazysphere-fa3b1ef74882597d7e809fc0924bf5d66114f535.tar.gz
lazysphere-fa3b1ef74882597d7e809fc0924bf5d66114f535.tar.bz2
lazysphere-fa3b1ef74882597d7e809fc0924bf5d66114f535.zip
update help messages and use addressing range for ed s command
Diffstat (limited to 'src/commands/cat.c')
-rw-r--r--src/commands/cat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/commands/cat.c b/src/commands/cat.c
index dd1a732..b862c13 100644
--- a/src/commands/cat.c
+++ b/src/commands/cat.c
@@ -27,12 +27,12 @@ static bool printable(char c) {
static void help() {
printf("Usage: cat [-nbvteA] [FILE]...\n\n");
printf("Print FILEs to stdout\n\n");
- printf("-n Number output lines\n");
- printf("-b Number nonempty lines\n");
- printf("-v Show nonprinting characters as ^x or M-x\n");
- printf("-t ...and tabs as ^I\n");
- printf("-e ...and end lines with $\n");
- printf("-A Same as -vte\n");
+ printf("\t-n Number output lines\n");
+ printf("\t-b Number nonempty lines\n");
+ printf("\t-v Show nonprinting characters as ^x or M-x\n");
+ printf("\t-t ...and tabs as ^I\n");
+ printf("\t-e ...and end lines with $\n");
+ printf("\t-A Same as -vte\n");
exit(EXIT_SUCCESS);
}