Skip to content

Commit

Permalink
bashlib: fix --help output
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Sep 12, 2023
1 parent bfe6a0c commit 3d74ffd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ocrd/ocrd/lib.bash
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ ocrd__list_resources () {
## Print usage
##
ocrd__usage () {

ocrd ocrd-tool "$OCRD_TOOL_JSON" tool "$OCRD_TOOL_NAME" help $ocrd__subcommand

declare -a _args=(ocrd-tool "$OCRD_TOOL_JSON" tool "$OCRD_TOOL_NAME" help)
if [ -v ocrd__subcommand ];then
_args+=($ocrd__subcommand)
fi
ocrd ${_args[@]}
}

## ### `ocrd__parse_argv`
Expand Down

0 comments on commit 3d74ffd

Please sign in to comment.