You can use the same technique with shell scripts and the getopts builtin command eases your task.
您可以对 shell 脚本使用同样的技术,getopts 内置命令可以简化您的任务。
The type command reports that the ls command is an alias, but it identifies the set command as a shell builtin.
type 命令报告指出,ls 命令是一个别名,但是它将 set 命令标识为一个 shell 内置命令。
应用推荐