Changeset 28073


Ignore:
Timestamp:
2013-08-16T12:15:18+12:00 (11 years ago)
Author:
ak19
Message:

Forgot to add the help cmdline option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/diffcol/trunk/gen-model-colls.sh

    r28070 r28073  
    333333
    334334    echo "*******************************************"
    335     echo "Usage: $0 [--svnupdate|--svndelete] [col1, col2, col3,...]";
     335    echo "Usage: $0 [--svnupdate|--svndelete] [--debug] [--message 'custom commit message'] [col1, col2, col3,...]";
    336336    echo "If no collections are provided, all collections will be processed.";
    337337    echo "If neither svnupdate nor svndelete are provided, svnupdate is assumed.";
     
    346346# http://blog.onetechnical.com/2012/07/16/bash-getopt-versus-getopts/
    347347# Execute getopt
    348 ARGS=$(getopt -o m:uxd -l "message:,svnupdate,svndelete,debug" -n "$0" -- "$@");
     348ARGS=$(getopt -o m:uxdh -l "message:,svnupdate,svndelete,debug,help" -n "$0" -- "$@");
    349349
    350350#Bad arguments
     
    360360while true; do
    361361  case "$1" in
     362    -h|--help)
     363      shift;
     364      usage
     365      exit 0
     366      ;;
    362367    -x|--svndelete)
    363368      shift;
Note: See TracChangeset for help on using the changeset viewer.