From af82c190a1c2b4b5e3d4348139563f9ecd785cfc Mon Sep 17 00:00:00 2001 From: epoch Date: Wed, 21 Mar 2018 00:51:07 -0500 Subject: updated slowcat to output help message for -h and --help --- src/slowcat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/slowcat.c b/src/slowcat.c index 647d2f0..305c0d8 100644 --- a/src/slowcat.c +++ b/src/slowcat.c @@ -6,7 +6,7 @@ int main(int argc,char *argv[]) { short in; FILE *fp=stdin; - if(argc < 2) { + if(argc < 2 || (argc >= 2 && (!strcmp(argv[1],"-h") || !strcmp(argv[1],"--help")))) { fprintf(stderr,"usage: slowcat delay [file1] [file2] [...]\n"); return 1; } -- cgit v1.2.3