Thanks for sharing Isa, its a great tip for people to know about, I was able to write much cleaner, reusable scripts when I started using this!
Thanks Aaron! Now I just need to work on validating and parsing command-line inputs in a cleaner, more reusable way... ;)
I will aim to write a quick post on how I did it in an app a while back and see if you think it helps (need to find which repo I did it in first)
This might be worth checking out if you are interested. npmjs.com/package/yargs
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for sharing Isa, its a great tip for people to know about, I was able to write much cleaner, reusable scripts when I started using this!
Thanks Aaron! Now I just need to work on validating and parsing command-line inputs in a cleaner, more reusable way... ;)
I will aim to write a quick post on how I did it in an app a while back and see if you think it helps (need to find which repo I did it in first)
This might be worth checking out if you are interested. npmjs.com/package/yargs