#!/bin/bash
set -uo pipefail
python3 /usr/libexec/anolis-monorepo/workbench.py "$@"
rc=$?
if [[ $rc != 0 || ${1:-} != open ]]; then
 printf '\nExit status: %s\n' "$rc"
 read -rp 'Press Enter to close...' || true
fi
exit "$rc"
