all repos — scriptura @ ea5fdda99a8b78f2d11b7efe5f68330fb5ce1b8e

a corner in $HOME for your scripts

improve usage information

Alin
commit

ea5fdda99a8b78f2d11b7efe5f68330fb5ce1b8e

parent

8f4320e8825448b3642b6e1dde31aad53dee43c2

1 file changed, 11 insertions(+), 3 deletions(-)

changed files
M functions/scriptura.fishfunctions/scriptura.fish
@@ -25,9 +25,17 @@ end
end if not count $argv >/dev/null - printf 'Usage: %s [run] <script_name>\n' (status current-command) - printf '%s: %s\n' $scriptura_root_var $SCRIPTURA_ROOT - printf '\n' + echo "Usage: $(status current-command) <subcommand> <script_name>" + echo "$scriptura_root_var: $SCRIPTURA_ROOT" + echo "" + echo "Subcommands:" + echo "" + for subcommand in $valid_subcommands + printf ' %-12s %s\n' $subcommand (__scriptura_describe_function __scriptura_$subcommand) + end + echo "" + echo "Scripts:" + echo "" __scriptura_list $SCRIPTURA_ROOT return 0