Command line
Get an argument
Given a file named “main.scm” with:
(import (scheme base) (scheme process-context))
(map write-string (command-line))
When I successfully run stak main.scm hello
Then the stdout should contain “hello”.
Get two arguments
Given a file named “main.scm” with:
(import (scheme base) (scheme process-context))
(map write-string (command-line))
When I successfully run stak main.scm hello world
Then the stdout should contain “hello”
And the stdout should contain “world”.