0.0.1 • Published 7 years ago

ara-cli-options v0.0.1

Weekly downloads
44
License
MIT
Repository
github
Last release
7 years ago

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.