diff options
Diffstat (limited to 'head.c')
-rw-r--r-- | head.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Copyright (C) 1999 by Lineo, inc. | 5 | * Copyright (C) 1999 by Lineo, inc. |
6 | * Written by John Beppu <beppu@line.com> | 6 | * Written by John Beppu <beppu@lineo.com> |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by | 9 | * it under the terms of the GNU General Public License as published by |
@@ -26,11 +26,10 @@ | |||
26 | #include <stdio.h> | 26 | #include <stdio.h> |
27 | 27 | ||
28 | const char head_usage[] = | 28 | const char head_usage[] = |
29 | "Usage: head [OPTION]... [FILE]...\n" | 29 | "Usage: head [FILE]...\n\n" |
30 | "Print first 10 lines of each FILE to standard output.\n" | 30 | "Print first 10 lines of each FILE to standard output.\n" |
31 | "With more than one FILE, precede each with a header giving the file name.\n" | 31 | "With more than one FILE, precede each with a header giving the\n" |
32 | "With no FILE, or when FILE is -, read standard input.\n\n" | 32 | "file name. With no FILE, or when FILE is -, read standard input.\n"; |
33 | " -h display this help and exit\n"; | ||
34 | 33 | ||
35 | int | 34 | int |
36 | head(int len, FILE *src) | 35 | head(int len, FILE *src) |
@@ -66,6 +65,7 @@ head_main(int argc, char **argv) | |||
66 | if (argv[i][0] == '-') { | 65 | if (argv[i][0] == '-') { |
67 | opt = argv[i][1]; | 66 | opt = argv[i][1]; |
68 | switch (opt) { | 67 | switch (opt) { |
68 | case '-': | ||
69 | case 'h': | 69 | case 'h': |
70 | usage(head_usage); | 70 | usage(head_usage); |
71 | default: | 71 | default: |
@@ -103,4 +103,4 @@ head_main(int argc, char **argv) | |||
103 | exit(0); | 103 | exit(0); |
104 | } | 104 | } |
105 | 105 | ||
106 | /* $Id: head.c,v 1.1 1999/12/10 07:42:50 beppu Exp $ */ | 106 | /* $Id: head.c,v 1.2 1999/12/10 08:29:20 andersen Exp $ */ |