add: help

This commit is contained in:
2023-07-26 18:49:48 +02:00
parent 31f89f44ec
commit 6c9f86a88c
6 changed files with 34 additions and 20 deletions

View File

@ -8,7 +8,7 @@ parsing(data, cmd_ptr)
local tmp;
local line_application;
input = geadline("(default)");
input = get_input(data, "(default)", NULL);
if (input == NULL)
return 1;
if (strcmp(input, ".") == 0)
@ -87,6 +87,8 @@ main()
cmd_numbered(data, NULL);
else if (strcmp(cmd, "d") == 0)
cmd_delete(data, NULL);
else if (strcmp(cmd, "h") == 0)
cmd_help(data, NULL);
else
error(data, "cmd not foud");
free(cmd);