- usage()类似于执行文件-help展示的内容,即告诉使用者有哪些参数选项可供使用。
- usage()格式
点击查看代码
usage() {
echo "Usage: $0 <OPTIONS>"
echo "Required Parameters:"
echo "-d <data_dir> Path to directory of supporting data"
exit 1
}
usage() {
echo "Usage: $0 <OPTIONS>"
echo "Required Parameters:"
echo "-d <data_dir> Path to directory of supporting data"
exit 1
}