Commit f5b55511 authored by Jan Kiene's avatar Jan Kiene
Browse files

make "full" the default in getWmops

parent 963b83a3
Loading
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -29,12 +29,11 @@
# the United Nations Convention on Contracts on the International Sales of Goods.

function usage {
  echo "Usage: $0 \"ivas-format(s)\" \"output-format(s)\" \"mode[full|mem_only]\""
    echo "Usage: $0 \"ivas-format(s)\" \"output-format(s)\" \"mode{full(default)|mem_only}\""
  exit 1
}

# get format from command line
if [ $# -ne 3 ]; then
if [ $# -ne 2 ] && [ $# -ne 3 ]; then
    usage
fi

@@ -42,11 +41,13 @@ ivas_format=$1
output_format="$2"

mode_arg_script=""
if [ $# -eq 3 ]; then
    if [ "$3" = "mem_only" ]; then
        mode_arg_script="--wmc_tool_mem_only"
    elif [ "$3" != "full" ]; then
        usage
    fi
fi

date=`date +%Y%m%d`                         # used for log-file file ending
shortDate=`date "+%b %d" | sed -e "s/\ /_/g"`    # stored in the log-file