diff --git a/src/main.c b/src/main.c index 3e63ac5..8378df6 100644 --- a/src/main.c +++ b/src/main.c @@ -22,13 +22,14 @@ #include #include +#include #include "flog.h" #include "common.h" int main(int argc, char *argv[]) { - if (argc == 1 ) { + if (argc == 1 && isatty(fileno(stdin))) { flog_usage(); return 1; }