joakim666 / colortail

Like the tail command line utility but with colors
GNU General Public License v2.0
125 stars 23 forks source link

Option "-h" documented, but not functional #21

Open barsnick opened 4 years ago

barsnick commented 4 years ago

colortail self-documents the -h option, but doesn't implement it correctly:

$ colortail -h
colortail: invalid option -- ?
Try 'colortail --help' for more information.

I'm too lazy to create a PR, since the fix is trivial:

-      c = getopt_long(argc, argv, "qvn:fk:l", long_options, NULL);
+      c = getopt_long(argc, argv, "qvhn:fk:l", long_options, NULL);

Cheers!