Next, define your argument list, called argv.
下一步,定义参数列表,使argv被调用。
It simply emits the contents of the argv vector.
它只简单地打印argv向量的内容。
BusyBox then invokes the internal utility as defined by argv [0].
BusyBox然后可以通过argv[0]来调用内部工具。
The first argv element (0) is the program name (that is, echo.py).
第一个argv元素(0)是程序名(即 echo.py)。
Boost's parse_command_line routine parses the argc and argv arguments.
Boost的parse_command _ line例程解析argc和argv参数。
For brevity, this script processes only the first extra argument, argv [1].
为了简单起见,这个脚本只处理第一个额外参数argv [1]。
Index 0 of argv is the program name that was invoked from the command line.
argv的索引0是从命令行调用的程序名。
Others are purely stylistic convention (args, not argv; I + + instead of + + I).
其他则是纯粹的风格惯例(args而非argv; i++而非+ +i)。
In particular, argv is an array of arguments to the program, the first argument being the program itself.
特别是,argv是程序的参数数组,第一个参数是程序本身。
That's why in Listing 1 we could say -e'print Dumper \@ARGV' and Perl saw it as a single one-liner script.
这就是为什么在清单1 中我们可以写成 -e'printDumper \@ARGV' 并且Perl 可以将其看成单个一行程序脚本的原因。
Note here that the argc variable (argument count) is implicit, because the length of the argv list is known.
请注意这里的argc变量(参数数量)是隐式的,因为argv列表的长度已经知道。
This loop iterates over the array, ARGV, which is the remaining set of arguments passed to the script on the command line.
该循环在数组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中,有着同样的安装并调用(例如初始化argv和envp数组)的需求。
The getopt routine processes the arguments (you must pass it argc and argv) according to a string of accepted option characters.
getopt例程根据接受的选项字符的字符串来处理参数(必须传递给它argc和argv)。
To skip it you take a slice of the argv list, effectively starting at position one (1), and then iterate through the end of the list.
要跳过它,取走argv列表的片段,实际开始位置为一(1),然后迭代直到列表的最后。
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 列表类似,定义了应用程序(数组第一个元素)和参数列表。
Notice that the length of the argv list is obtained through the len function and not as a method; this is a Jython idiom and is common in many languages.
注意argv列表的长度是通过len函数而不是作为方法获得的,这是Jython的一种用法,在许多语言中也常见。
The command line to purecov uses the -export option with $ARGV [0], the program name, to export data from the program you specify when you run the script.
命令行purecov 使用 –export选项 ,和 $ARGV [0],程序名一起,从您在运行脚本时指定的程序中输出数据。
Add another method, and name it parse_line, with two input parameters - line and argv - along with a return parameter with int as the type. (see Figure 5).
添加另外一种方法,并将其命名为parse_line,其两个输入参数为—line和argv—以及一个int的返回参数(见于图5)。
These versions of exec* are just various calling interfaces for core function execve(): int execve(const char *filename, char *const argv [], char *const envp[]).
exec*的这些版本只是内核函数execve() (int execve(constchar *filename, char *constargv [], char *constenvp[])) 的各种调用接口。
Options found after -c command or -m module are not consumed by the Python interpreter's option processing but left in sys. argv for the command or module to handle.
在- c命令或- m模块之后的选项不会经由Python解释器的选项处理,但会保留在sys .argv中由命令或模块来处理。
In this definition, argc is the number of arguments passed in (argument count) and argv is an array of strings representing options passed in from the command line (argument vector).
在这个定义中,argc是传递进来的参数的个数(参数数量),而argv是一个字符串数组,代表从命令行传递进来的参数(参数向量)。
In this definition, argc is the number of arguments passed in (argument count) and argv is an array of strings representing options passed in from the command line (argument vector).
在这个定义中,argc是传递进来的参数的个数(参数数量),而argv是一个字符串数组,代表从命令行传递进来的参数(参数向量)。
应用推荐