Accpeting command-line arguments in GHC/Hugs

Sven Panne
Tue, 23 Jan 2001 23:15:10 +0100

Shlomi Fish wrote:
> How can I read the command-line arguments passed to the program. [...]

As already pointed out, System.getArgs is the basically the way to go.
If you want to use the list returned by it comfortably, see: