Create an interactive mode where the user can launch the program, and then run commands endlessly.
For instance, a user could launch this mode by running node entry.js --interactive, and then run commands simply by typing list toppings and hitting enter.
If you're running a program and expect to issue it multiple commands over time, this is faster than typing node entry.js before each and every command.
Create an interactive mode where the user can launch the program, and then run commands endlessly.
For instance, a user could launch this mode by running
node entry.js --interactive, and then run commands simply by typinglist toppingsand hitting enter.If you're running a program and expect to issue it multiple commands over time, this is faster than typing
node entry.jsbefore each and every command.