argv

argv

 英

  • 网络命令行参数;参数列表;命令行参数排列(Argument Values)

例句

This list is similar to the argv list used in common C programs and defines the application (first element of the array) and argument list.

列表普通C程序argv列表类似定义应用程序数组第一个元素参数列表

The outer foreach loop iterates over all of the command-line parameters in the @ARGV array looking for a trigger message.

外层foreach循环@ARGV数组所有命令参数查找触发器消息

This loop iterates over the array, ARGV, which is the remaining set of arguments passed to the script on the command line.

循环数组ARGV命令传递脚本余下参数集合

In my opinion the easiest solution is to parse @ARGV manually as shown in the following listing.

看来简单解决方案手工解析@ARGV,

In particular, argv is an array of arguments to the program, the first argument being the program itself.

特别是argv程序参数数组第一参数程序本身

Internally, Perl (similar to C) passes arguments to the script it interprets in the @ARGV array.

内部Perl类似C参数传递@ARGV数组解释脚本

The magic of the -i switch is that it replaces each file in @ARGV with the version produced by the script's output on that file.

i开关神奇在于@ARGV每个文件脚本文件输出产生文件版本进行替代

When the script is run on the command line, this gives C-style access to the command line parameters.

脚本运行命令方式argv变量传递程序C语言样式命令参数

The code in Listing 2 first looks for a parameter passed in the $argv array.

清单2代码首先$argv数组查找一个传递进来参数

For brevity, this script processes only the first extra argument, argv[1].

为了简单起见这个脚本处理第一个额外参数argv[1]。

It simply emits the contents of the argv vector.

只简单打印argv向量内容

Next, define your argument list, called argv.

下一步定义参数列表使argv调用

For each file given on the command line (in @ARGV), I get the ID3 tag and create it if necessary.

命令(@ARGV文件得到ID3标签如果需要创建

BusyBox then invokes the internal utility as defined by argv[0].

BusyBox然后可以通过argv[0]调用内部工具

In this case, you use a range to index the sys. argv list.

这个示例使用range索引sys.argv列表

Others are purely stylistic convention (args, not argv; i++ instead of ++i).

其他纯粹风格惯例argsargv;i++++i)。

Index 0 of argv is the program name that was invoked from the command line.

argv索引0命令调用程序

The variable CMD was set to "cat " +sys. argv[2].

变量CMD设置cat”+sys.argv[2]。

Script 6. pl recognizes UTF-8 data in @ARGV (6_out. txt shows a sample run of 6. pl).

脚本6.pl可以识别@ARGVUTF-8数据(6_out.txt显示一个运行6.pl样例输出)。

The first argv element (0) is the program name (that is, echo. py).

第一argv元素(0)程序echo.py)。

For example, you can access parameters passed to scripts on the command line using the sys. argv variable.

例如可以使用sys.argv变量命令访问传递脚本参数

Note that in Listing 3, the same requirements exist to set up and make the call (such as initializing the argv and envp arrays).

注意清单3有着同样安装调用例如初始化argvenvp数组需求