summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 35899e2..7bd931e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -21,7 +21,7 @@ int main (ARGUMENTS) {
if (argc < 2) {
printf("usage: lazysphere [function [arguments]...]\n\n");
printf("currently defined functions:\n");
- printf("\tdd, cat, yes, echo, printf, id, groups, ls, tail, head, ed, tee, true, false, tee, whoami, wc, xargs\n");
+ printf("\tdd, cat, yes, echo, printf, id, groups, ls, tail, head, ed, tee, true, false, tee, whoami, wc, xargs, tac\n");
return EXIT_SUCCESS;
}
argc--;
@@ -70,6 +70,8 @@ int main (ARGUMENTS) {
return wc(NEXT_ARGS);
} else if (streql(cmd, "xargs")) {
return xargs(NEXT_ARGS);
+ } else if (streql(cmd, "tac")) {
+ return tac(NEXT_ARGS);
} else {
error("error: invalid command %s", cmd);
}