implement --mem= syntax

This commit is contained in:
ville rantanen
2013-09-16 17:03:30 +03:00
parent 160e70ac41
commit 870aa023ce

View File

@@ -34,6 +34,11 @@ do [[ ${!i} == "--possess" ]] && {
MEM=${argv[$i]} MEM=${argv[$i]}
unset argv[$(( $i - 1 ))] unset argv[$(( $i - 1 ))]
unset argv[$(( $i ))] unset argv[$(( $i ))]
continue
}
[[ ${!i} == "--mem="* ]] && {
MEM=${argv[$(( $i - 1 ))]#*=}
unset argv[$(( $i - 1 ))]
} }
[[ ${!i} == "-h" ]] && { [[ ${!i} == "-h" ]] && {
echo -e "$USAGE" echo -e "$USAGE"