diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,4 @@ #include "command.h" -#include "convert.h" #include "lslib.h" #include <stdlib.h> @@ -23,7 +22,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, tac, rm, cp, mkdir, mv, grep, chown, chmod, sync\n"); + printf("\tdd, cat, yes, echo, printf, id, groups, ls, tail, head, ed, tee, true, false, tee, whoami, wc, xargs, tac, rm, cp, mkdir, mv, grep, chown, chmod, sync, su\n"); return EXIT_SUCCESS; } argc--; @@ -91,6 +90,8 @@ int main (ARGUMENTS) { return chmod_cmd(NEXT_ARGS); } else if (streql(cmd, "sync")) { return sync_cmd(NEXT_ARGS); + } else if (streql(cmd, "su")) { + return su(NEXT_ARGS); } else { fprintf(stderr, "lazysphere: invalid command %s\n", cmd); return EXIT_FAILURE; |