r/purescript • • Mar 07 '20

Read command line arguments

Hi everyone, is there any function in the standard library useful to read command line arguments?

2 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/tomintom Feb 09 '22

Another way to get the raw arguments from Node.js, without requiring purescript-node-process (credit: https://qiita.com/kimagure/items/39b26642b89bd87bf177): use exports.argv = process.argv in a .js file, and then foreign import argv :: Array String.