getArgs -package:basement

Computation getArgs returns a list of the program's command line arguments (not including the program name).
Computation getArgs returns a list of the program's command line arguments (not including the program name), as ByteStrings. Unlike getArgs, this function does no Unicode decoding of the arguments; you get the exact bytes that were passed to the program by the OS. To interpret the arguments as text, some Unicode decoding should be applied.
Computation getArgs returns a list of the program's command line arguments (not including the program name), as PosixStrings. Unlike getArgs, this function does no Unicode decoding of the arguments; you get the exact bytes that were passed to the program by the OS. To interpret the arguments as text, some Unicode decoding should be applied.
Lifted getArgs.
Lifted version of getArgs.
Returns a list of the program's command line arguments (not including the program name).
Get the arguments from the terminal command
Parse the CLI arguments with CmdArgs.
Like getArgs, but can also read arguments supplied via response files. For example, consider a program foo:
main :: IO ()
main = do
args <- getArgsWithResponseFiles
putStrLn (show args)
And a response file args.txt:
--one 1
--'two' 2
--"three" 3
Then the result of invoking foo with args.txt is:
> ./foo @args.txt
["--one","1","--two","2","--three","3"]
Convenience action: Initialize GLUT, returning the program name and any non-GLUT command line arguments.
Treat the String value, if any, of the given argument as a file handle and try to open it as requested. If not present, substitute the appropriate one of stdin or stdout as indicated by IOMode.
  • Deprecated Return the String value, if any, of the given argument.