From fa3b1ef74882597d7e809fc0924bf5d66114f535 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Sun, 30 Apr 2023 15:51:58 -0400 Subject: update help messages and use addressing range for ed s command --- src/commands/cat.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/commands/cat.c') 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); } -- cgit v1.2.3-freya