+x2="foobar"
+o=""
+while true;do
+ if [ "$1" = "-r" ];then
+ o="$o -r"
+ shift
+ continue
+ fi
+ if [ "$1" = "-N" ];then
+ o="$o -N"
+ shift
+ continue
+ fi
+ if [ "$1" = "log" ];then
+ x="*.sum"
+ o="-r"
+ shift
+ continue
+ fi
+ if [ "$1" = "pie" ];then
+ x2="*pie*"
+ shift
+ continue
+ fi
+ break
+done