getArgs -package:directory -package:base-compat -package:unix -package:GLUT

Computation getArgs returns a list of the program's command line arguments (not including the program name).
getArgs for OsString. @since X.Y.Z
Lifted getArgs.
Based on GetCommandLineW. This behaves slightly different than getArgs. See the online documentation: https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-getcommandlinew
Based on GetCommandLineW. This behaves slightly different than getArgs. See the online documentation: https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-getcommandlinew
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"]
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.
Inspect ahead of time what types will be searched in the Beans map.
>>> :{
let beans = fromDynList [toDyn @Int 5, toDyn False]
args = (,) <$> arg @Int <*> arg @Bool
in (getArgsReps args, runArgs (taste beans) args)
:}
(fromList [Int,Bool],(5,False))
Get the size of the data block used to specify arguments for this shader.
Gets args for the node.