Skip to content

Commit

Permalink
bashlib: re-add --log-filename, implement as stderr redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Aug 28, 2024
1 parent df99160 commit eb74fab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ocrd/lib.bash
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ ocrd__parse_argv () {
while [[ "${1:-}" = -* ]];do
case "$1" in
-l|--log-level) ocrd__argv[log_level]=$2 ; shift ;;
--log-filename) exec 2> "$2" ; shift ;;
-h|--help|--usage) ocrd__usage; exit ;;
-J|--dump-json) ocrd__dumpjson; exit ;;
-D|--dump-module-dir) echo $(dirname "$OCRD_TOOL_JSON"); exit ;;
Expand Down

0 comments on commit eb74fab

Please sign in to comment.