2016-05-21 12:44:17 -07:00
|
|
|
import "os" for Process
|
2016-01-22 07:57:26 -08:00
|
|
|
|
|
|
|
|
var args = Process.allArguments
|
|
|
|
|
System.print(args is List) // expect: true
|
|
|
|
|
System.print(args.count) // expect: 2
|
|
|
|
|
|
|
|
|
|
// Includes wren executable and file being run.
|
2016-10-09 09:18:27 +01:00
|
|
|
System.print(args[0].contains("wren")) // expect: true
|
2016-05-21 12:44:17 -07:00
|
|
|
System.print(args[1]) // expect: test/os/process/all_arguments.wren
|
2016-01-22 07:57:26 -08:00
|
|
|
|
|
|
|
|
// TODO: Test passing additional args once we have an API to spawn a process.
|