📜  bash 添加帮助参数 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:08.787000             🧑  作者: Mango

代码示例1
if [ "$1" == "-h" ]; then
  echo "Usage: `basename $0` [somestuff]"
  exit 0
fi