aboutsummaryrefslogtreecommitdiffstats
path: root/src/lush.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lush.c')
-rw-r--r--src/lush.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lush.c b/src/lush.c
index 93cb28d..0be4d4d 100644
--- a/src/lush.c
+++ b/src/lush.c
@@ -62,6 +62,7 @@ char *lush_get_alias(char *alias) { return hm_get(aliases, alias); }
// -- builtin functions --
char *builtin_strs[] = {"cd", "help", "exit", "time"};
+char *builtin_usage[] = {"[dirname]", "", "", "[pipeline]"};
int (*builtin_func[])(lua_State *, char ***) = {
&lush_cd, &lush_help, &lush_exit, &lush_time, &lush_lua};
@@ -120,7 +121,7 @@ int lush_help(lua_State *L, char ***args) {
"time to reference this list.\n");
printf("Available commands: \n");
for (int i = 0; i < lush_num_builtins(); i++) {
- printf("- %s\n", builtin_strs[i]);
+ printf("- %s %s\n", builtin_strs[i], builtin_usage[i]);
}
return 1;
}
width='13' height='13' alt='Gravatar' /> Enno Boland (tox) 1-12/+19 2009-09-10adding user stylesheets.Gravatar Enno Boland (tox) 1-10/+21 2009-09-10Added tag 0.1 for changeset 9c8ebcf54061Gravatar Enno Boland (tox) 1-0/+2 2009-09-10dist doesn't work. fixing Makefile.Gravatar Enno Boland (tox) 1-1/+1