summaryrefslogtreecommitdiff
path: root/src/commands/tail.c
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-05-03 12:17:56 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-05-03 12:17:56 -0400
commitf2606d0875dbaadb3f414d98d8f37fdbdf6036ea (patch)
tree5319a70aaba6cb57d554e7e7b0651908db4ec20a /src/commands/tail.c
parentfix ls segfault (diff)
downloadlazysphere-f2606d0875dbaadb3f414d98d8f37fdbdf6036ea.tar.gz
lazysphere-f2606d0875dbaadb3f414d98d8f37fdbdf6036ea.tar.bz2
lazysphere-f2606d0875dbaadb3f414d98d8f37fdbdf6036ea.zip
add rm, cp, mkdir, mv
Diffstat (limited to 'src/commands/tail.c')
-rw-r--r--src/commands/tail.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/commands/tail.c b/src/commands/tail.c
index a611842..4856bc0 100644
--- a/src/commands/tail.c
+++ b/src/commands/tail.c
@@ -131,7 +131,7 @@ static int short_arg(char c, char* next) {
check_arg(next);
long int bkm = get_blkm(next);
if (bkm < 1) {
- error("error: bkm cannot be less than 1");
+ error("bkm cannot be less than 1");
}
flags.count = bkm;
return ARG_USED;
@@ -141,7 +141,7 @@ static int short_arg(char c, char* next) {
check_arg(next);
long int bkm = get_blkm(next);
if (bkm < 1) {
- error("error: bkm cannot be less than 1");
+ error("bkm cannot be less than 1");
}
flags.count = bkm;
return ARG_USED;
@@ -159,14 +159,13 @@ static int short_arg(char c, char* next) {
check_arg(next);
long int sec = get_number(next);
if (sec < 1) {
- error("error: wait seconds cannot be less than 1");
+ error("wait seconds cannot be less than 1");
}
flags.grow_wait = sec;
return ARG_USED;
}
- default: {
- error("error: unknown option -%c", c);
- }
+ default:
+ return ARG_INVALID;
}
return ARG_UNUSED;
}