#!/bin/sh

# This script is used with test-gnupg-process
set -euf

HOMEDIR=

# Not real 'long' option parsing, but good enough for this
while [ $# -gt 1 ]; do
	if [ "$1" = --homedir ]; then
		HOMEDIR=$2
		shift
	fi
	shift
done

# No homedir passed :(
if [ -z "$HOMEDIR" ]; then
	exit 22
fi

echo "DIR: $HOMEDIR"
