Skip to content

Commit

Permalink
Zero args to the wrapper means call help
Browse files Browse the repository at this point in the history
  • Loading branch information
zph committed Aug 9, 2024
1 parent 7b3c373 commit 2ba105a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/embeds/tome-wrapper.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export TOME_CLI_ROOT="{{ .Root }}"
# Compatibility layer with former tome executable
# from https://github.com/zph/tome or upstream
if [[ -z "${1:-}" ]]; then
exec_cmd "tome-cli"
# Backwards compatibility with tome means print all script help
exec_cmd "tome-cli" help
fi
readonly cmd="$1"
case "$cmd" in
Expand Down

0 comments on commit 2ba105a

Please sign in to comment.