diff --git a/include/arg.h b/include/arg.h index e37a950..cd0a77a 100644 --- a/include/arg.h +++ b/include/arg.h @@ -2,7 +2,7 @@ #define ARG_H #include -#define LAT_VERSION "0.8.1" +#define LAT_VERSION "0.9.1" struct config { bool stdin; diff --git a/src/lib/arg.c b/src/lib/arg.c index 3db3e8f..5437f99 100644 --- a/src/lib/arg.c +++ b/src/lib/arg.c @@ -1,9 +1,10 @@ -#include "arg.h" -#include "util.h" #include #include #include +#include "arg.h" +#include "util.h" + #define LAT_USAGE "usage: lat [-cnbVh] [files..]" void help(void) { @@ -41,7 +42,7 @@ void parselongarg(char *arg) { return; } - if (strcmp(arg, "--headers")) { + if (strcmp(arg, "--headers") == 0) { conf.headers = !conf.headers; return; }