Skip to content

Commit 5cae95a

Browse files
committed
Update wrapper script to handle additional edge cases
1 parent 32918d5 commit 5cae95a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cmd/embeds/tome-wrapper.sh.tmpl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,13 @@ case "$cmd" in
7373
esac
7474
# Call tome-cli with the provided arguments
7575
exec_cmd "tome-cli" "$@"
76+
77+
case "$cmd" in
78+
# __* is for internal completion commands
79+
exec|init|complete|help|alias|--help|__*)
80+
exec_cmd "tome-cli" "$@"
81+
;;
82+
*)
83+
exec_cmd "tome-cli" -- "$@"
84+
;;
85+
esac

0 commit comments

Comments
 (0)