the-argv

Extract and manipulate command-line argument values easily.

npmmacoslinuxwindows
Try with needOr install directly
Source

About

The part of argv you want

Commands

argv

Examples

get the first argument passed to a script$ argv 0
get the last argument from command line$ argv -1
get all arguments except the first one$ argv 1:
get arguments from index 2 to 5$ argv 2:5
count total number of arguments passed$ argv --length