#!/bin/sh
## ad hoc wrapper to feed help2man(1)
set -e
WRAPPERDIR=${0%/*}
PYTHON_VERSION_MAJOR=${WRAPPERDIR##*/python}
case ${PYTHON_VERSION_MAJOR} in 2|3):;; *) exit 1 ;; esac
WRAPPEE=build/scripts-${PYTHON_VERSION_MAJOR}/cmark-bkrs
[ -x $WRAPPEE ] || exit 1
$WRAPPEE $@ | sed -e 's|usage\:|Usage\:|;s|positional arguments\:|\*Input Files\*|;s|optional arguments\:|Options\:|'
exit 0
## eow
