diff options
Diffstat (limited to 'src/commands/head.c')
-rw-r--r-- | src/commands/head.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/commands/head.c b/src/commands/head.c index 44bc45b..c09dc9a 100644 --- a/src/commands/head.c +++ b/src/commands/head.c @@ -70,7 +70,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; @@ -80,7 +80,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; @@ -91,9 +91,8 @@ static int short_arg(char c, char* next) { case 'v': flags.print_headers = true; break; - default: { - error("error: unknown option -%c", c); - } + default: + return ARG_INVALID; } return ARG_UNUSED; } |