set -o nounset

help()
{
    cat <<- EOF
    Desc: execute f1x for each case in Codeflaws
    Usage: ./exec_codeflaws.sh [Codeflaw_dir] [f1x_path] [run-f1x-codeflaw.rb_Dir]
	EOF
    exit 0
}

while [ -n "$1" ]; do
    case $1 in
        -h) help;;
        --) shift;break;;
        -*) echo "error: no such option $1."; exit 1;;
        *) break;;
esac
done

Referred from: https://blog.csdn.net/hejinjing_tom_com/article/details/79946427

相关文章:

  • 2021-10-01
  • 2021-07-07
  • 2021-11-14
  • 2022-12-23
  • 2021-09-14
  • 2021-11-26
  • 2021-06-04
猜你喜欢
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
  • 2021-09-06
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案