Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a module equivalent of Python's argparse for node.js?

argparse for python makes it quick and easy to handle command-line input, handling positional arguments, optional arguments, flags, input validation and much more. I've started writing applications in node.js and I'm finding it tedious and time consuming to write all that stuff manually.

Is there a node.js module for handling this?

like image 962
Hubro Avatar asked Jan 15 '12 08:01

Hubro


1 Answers

There is one direct port, conveniently also called argparse.

like image 69
Xion Avatar answered Sep 19 '22 20:09

Xion