aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/main.c b/main.c
index 565d438..a909b8a 100644
--- a/main.c
+++ b/main.c
@@ -2282,7 +2282,18 @@ int main(int argc, char *argv[]) {
} else if (strcmp(argv[i], "--") == 0) {
break;
} else if (strcmp(argv[i], "-v") == 0) {
- puts("vis " VERSION);
+ fputs("vis " VERSION, stdout);
+ if (CONFIG_LUA)
+ fputs(" +lua", stdout);
+ if (CONFIG_LPEG)
+ fputs(" +lpeg", stdout);
+ if (CONFIG_TRE)
+ fputs(" +tre", stdout);
+ if (CONFIG_ACL)
+ fputs(" +acl", stdout);
+ if (CONFIG_SELINUX)
+ fputs(" +selinux", stdout);
+ fputs("\n", stdout);
return 0;
} else {
fprintf(stderr, "Unknown command option: %s\n", argv[i]);