re-work to use subcommands instead of flags
1 file changed, 4 insertions(+), 2 deletions(-)
changed files
M functions/__scriptura_seen_script.fish → functions/__scriptura_seen_script.fish
@@ -2,7 +2,9 @@ function __scriptura_seen_script test (count $argv) -ne 0 or set --function argv (commandline -xpc)[2..] - argparse --stop-nonopt --move-unknown n/new -- $argv + if contains $argv[1] run help edit cat which new + set --erase argv[1] + end if not set --query argv[1] return 1@@ -18,7 +20,7 @@ set --function target $target/$arg else if path is --type file --perm exec $target/$arg return 0 else - if set --query _flag_new + if test $argv[1] = new # the first non-directory argument is probably a script name return 0 end