add: add argument sanity check

Signed-off-by: Christopher Larson <kergoth@gmail.com>