Skip to content

Commit

Permalink
properly sort options alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
Expander committed May 13, 2021
1 parent 2babbbe commit ad43fe4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions release/generate-models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ cat <<EOF
Usage: ./`basename $0` [options]
Options:
--directory= Output directory (default: ${directory})
--help,-h Print this help message
--number-of-jobs= Number of parallel makefile jobs (default: ${number_of_jobs})
--with-himalaya-libdir= Path to search for Himalaya library
--with-himalaya-incdir= Path to search for Himalaya header
--with-math-cmd= Mathematic kernel (default: ${MATH})
--with-models= Comma separated list of models to be generated
--number-of-jobs= Number of parallel makefile jobs
--directory= Output directory (default: ${directory})
--with-math-cmd= Mathematic kernel (default: $MATH)
--help,-h Print this help message
EOF
}

Expand All @@ -33,13 +33,13 @@ if test $# -gt 0 ; then
esac

case $1 in
--directory=*) directory=$optarg ;;
--help|-h) help; exit 0 ;;
--number-of-jobs=*) number_of_jobs=$optarg ;;
--with-himalaya-incdir=*) himalaya_inc_dir=$optarg ;;
--with-himalaya-libdir=*) himalaya_lib_dir=$optarg ;;
--with-models=*) models=$optarg ;;
--number-of-jobs=*) number_of_jobs=$optarg ;;
--directory=*) directory=$optarg ;;
--with-math-cmd=*) MATH=$optarg ;;
--help|-h) help; exit 0 ;;
--with-models=*) models=$optarg ;;
*) echo "Invalid option '$1'. Try $0 --help" ; exit 1 ;;
esac
shift
Expand Down

0 comments on commit ad43fe4

Please sign in to comment.