【发布时间】:2018-10-18 13:01:21
【问题描述】:
我正在尝试了解如何使用 getopts 为 ksh 脚本配置选项,我在 declaring options using getopts 上找到了以下详细信息:
Use : for options that require arguments.
Use # for options that require numeric arguments.
Use :? and #? for options that allow arguments but don't require them.
但是是否可以声明一个不允许任何参数的选项并添加有关该选项的文本描述?
【问题讨论】: