ara-cli-options
v0.0.1
Published
Get options provided to a script
Downloads
329
Maintainers
Readme
Purpose
To read command line arguments provided to a Node application.
Usage
Various options provided below should illustrate acceptable patterns.
const options = require(“cli-options”);
const FILE_LOCATION = options(“location”, "-location", "--location", "-l") || “./someDefaultLocation/“;
const EXEC_STYLE = options(“--style”, "-s", "sssssss") || “def style”;
Do not provide an =
in between arguments and their values. This module requires that there is no equal sign separating an argument and its value.