代码:
帮助手册雏形
function help(){
echo -e "Help manual":
echo -e " -h. -- help View the help manual"
echo -e " install Installation"
echo -e " uninstall Uninstall"
}
case "$1" in
--help)
help
;;
-h)
help
esac
exit 0
返回: