parse_command_line()parse_command_line()

分析 Unicode 命令行字符串并返回命令行参数的动态数组。Parses a Unicode command-line string and returns a dynamic array of the command-line arguments.

语法Syntax

parse_command_line(command_line,parser_type)parse_command_line(command_line,parser_type)

参数Arguments

  • command_line:要分析的命令行。command_line: Command line to parse.
  • parser_type:当前支持的唯一值为 "Windows",它以与 CommandLineToArgvW 相同的方式分析命令行。parser_type: The only value that is currently supported is "Windows", which parses the command line the same way as CommandLineToArgvW.

返回Returns

命令行参数的动态数组。A dynamic array of the command-line arguments.

示例Example

print parse_command_line("echo \"hello world!\"", "windows")
结果Result
["echo","hello world!"]["echo","hello world!"]