Skip to content

Commit

Permalink
sigh, arguing with getopt...
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmengel committed May 15, 2024
2 parents c7c1758 + beb7ae9 commit 0388832
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ default_fermi_spack_tools_repo=https://github.com/FNALssi/fermi-spack-tools.git

parse_args() {
with_padding=""
if x=$(getopt --longoptions with_padding,help,query-packages,fermi_spack_tools_release:,spack_release:,spack_repo:,fermi_spack_tools_repo: -- x "$@")
if x=$(getopt --options "" --longoptions with_padding,help,query-packages,fermi_spack_tools_release:,spack_release:,spack_repo:,fermi_spack_tools_repo: -- "$@")
then
eval set : $x
shift
Expand Down
4 changes: 2 additions & 2 deletions bin/make_packages_yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ usage() {

src=$dir/templates/packagelist
want_cvmfs=false
if x=$(getopt --longoptions --long-options help,with-externals,with-cvmfs,debug,packagelist: -- "$@")
if x=$(getopt --options "" --longoptions "help,with-externals,with-cvmfs,debug,packagelist:" -- "$@")
then
eval set : $x
shift
shift
else
usage
exit 1
Expand Down Expand Up @@ -53,6 +52,7 @@ x--packagelist=*)
src=`echo $1 | sed -e 's/--packagelist=//'`
shift
;;
x--) shift; break;;
x*)
break;;
esac
Expand Down
2 changes: 1 addition & 1 deletion bin/make_spack
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ parse_args() {
verbose=false

origargs="$*"
if x=$(getopt --longoptions help,depth,with_padding,upgrade,spack_release:,minimal,no_buildcache,spack_repo:,query-packages --options mptuv -- : "$@")
if x=$(getopt --longoptions help,depth,with_padding,upgrade,spack_release:,minimal,no_buildcache,repover,spack_repo:,query-packages --options mptuv -- "$@")
then
eval set : $x
shift
Expand Down

0 comments on commit 0388832

Please sign in to comment.