summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2018-03-21 00:51:07 -0500
committerepoch <epoch@hacking.allowed.org>2018-03-21 00:51:07 -0500
commitaf82c190a1c2b4b5e3d4348139563f9ecd785cfc (patch)
treed29a86ee292546d077a0b391b2779dec037ff534
parent335a31a61df57d3cc300c1c9aff0e08ff81f0abb (diff)
downloadhackvr-af82c190a1c2b4b5e3d4348139563f9ecd785cfc.tar.gz
hackvr-af82c190a1c2b4b5e3d4348139563f9ecd785cfc.zip
updated slowcat to output help message for -h and --help
-rw-r--r--src/slowcat.c2
1 files changed, 1 insertions, 1 deletions
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;
}