implement --mem= syntax
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user