#!/usr/bin/env zsh
# Natively run a specific example.

if [ $# -eq 0 ]
then
  echo "nrun <binary>"
  exit 1
fi

if [[ $1 == 'test'* ]]
then
  ./teensy/$1
  exit $?
fi

./$1
exit $?