diff options
| author | epoch <epoch@hacking.allowed.org> | 2018-03-21 00:51:07 -0500 | 
|---|---|---|
| committer | epoch <epoch@hacking.allowed.org> | 2018-03-21 00:51:07 -0500 | 
| commit | af82c190a1c2b4b5e3d4348139563f9ecd785cfc (patch) | |
| tree | d29a86ee292546d077a0b391b2779dec037ff534 /src | |
| parent | 335a31a61df57d3cc300c1c9aff0e08ff81f0abb (diff) | |
| download | hackvr-af82c190a1c2b4b5e3d4348139563f9ecd785cfc.tar.gz hackvr-af82c190a1c2b4b5e3d4348139563f9ecd785cfc.zip | |
updated slowcat to output help message for -h and --help
Diffstat (limited to 'src')
| -rw-r--r-- | src/slowcat.c | 2 | 
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;   } | 
