usage()
{
- echo "Usage: $0 [device-name] --prefix-dir=### --overlay-dir=###"
- echo "device-name - You can get the name by using 'sdb devices' command"
+ echo "Usage: $0 --device=[name] --overlay-dir=###"
+ echo "--device - If there are more than one target,"
+ echo " you should pass the device name by using 'sdb devices' command"
echo "--overlay-dir - You can specify the path of overlay"
- echo "--environment - You can specify the environment variable for performing the unittest"
- echo "--options - You can specify options for creating ni files"
+ echo "--environment - You can specify the environment variable for performing the unittest"
+ echo "--options - You can specify options for creating ni files"
exit 1
}
usage
exit 1
;;
+ --device=*)
+ opt="-s "${i#*=}
+ ;;
--prefix-dir=*)
clrdir=${i#*=}
;;
options=${i#*=}
;;
*)
- opt="-s ${i#*}"
+ usage
+ exit 1
;;
esac
shift