#!/bin/bash

sop() {
    python3 -m sop "$@"
}

# changing to the root dir avoids the most common accidental inclusion
# of sop/ in PYTHONPATH
cd /

sop version

# this should fail with an unsupported subcommand:
echo nope | sop armor --label=message 2>&1

if [ "$?" -ne 69 ]; then
    exit 1
fi
