go top

optind

网络释义

  选项索引

getopts命令使用变量OPTIND选项索引)和OPTARG(选项参数)来保存和选项相关的值。

基于4个网页-相关网页

双语例句

  • After getopt has returned -1, the global variable optind holds the index of the first argument that was not part of the command-line options.

    getopt返回- 1后,全局变量optind保存第一个属于命令行选项参数索引

    youdao

  • The showopts function analyzes the options as before, but USES the return statement to return the value of the OPTIND variable to the calling statement.

    showopts函数以前一样分析选项但是使用return语句OPTIND变量返回给调用语句。

    youdao

  • You will need to reset OPTIND to 1 yourself if you call getopts for a new set of arguments in a script where you have already used it with other arguments.

    如果脚本中已经使用参数调用getopts,现在要用一组参数来调用,则需要亲自OPTIND重置1

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定