summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 72e1531..cd9a81f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,4 +1,4 @@
-#include "shared.h"
+#include "util/shared.h"
#include "command.h"
#include <stdint.h>
@@ -20,7 +20,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\n");
+ printf("\tdd, cat, yes, echo, printf, id, groups, ls, tail, head, ed\n");
return EXIT_SUCCESS;
}
argc--;
@@ -54,6 +54,8 @@ int main (ARGUMENTS) {
return tail(NEXT_ARGS);
} else if (streql(cmd, "head")) {
return head(NEXT_ARGS);
+ } else if (streql(cmd, "ed")) {
+ return ed(NEXT_ARGS);
} else {
error("error: invalid command %s", cmd);
}