r/purescript • u/dartheian • 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
r/purescript • u/dartheian • Mar 07 '20
Hi everyone, is there any function in the standard library useful to read command line arguments?
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): useexports.argv = process.argvin a.jsfile, and thenforeign import argv :: Array String.