#!/bin/bash -e

if [ "$#" -gt "1" ]; then
	 NSH_std_usage_mame
	exit 1
elif [ "$#" -lt "1" ]; then
	NSH_MAME_run
else
	case "$1" in
	--help)
		NSH_std_usage_mame
		;;
	*)
		NSH_std_usage_mame
		exit 1
		;;
	esac
fi

exit 0
