npm.io
0.0.1 • Published 9 years agoCLI

ara-cli-options

Licence
MIT
Version
0.0.1
Deps
0
Vulns
0
Weekly
0
Stars
1

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.

Keywords