Closed rmeena840 closed 1 year ago
example/test
I have created a task for this. https://www.pivotaltracker.com/story/show/183908501
I am bit curious if we catch error the argument user passed in is a correct json format or not?
I have handled this case.
Will it throw error if we run
yarn algob run script.js '<JSON String>'
?
Yes, that's the cli format. @thdailong
Will it throw error if we run
yarn algob run script.js '<JSON String>'
?Yes, that's the cli format. @thdailong
No, my means is that passing like this yarn algob run script.js '<JSON String>'
without --arg
flag would throw error or not
Will it throw error if we run
yarn algob run script.js '<JSON String>'
?Yes, that's the cli format. @thdailong
No, my means is that passing like this
yarn algob run script.js '<JSON String>'
without--arg
flag would throw error or not
@thdailong Yes, it will throw error.
@sczembor Please review the PR.
New format for passing the arguments in algob cli:
yarn algob run scripts/0-gold-asa.js --arg '{"firstname":"Jesper","surname":"Aaberg","phone":["555-0100", "555-0120"]}'