1.0.0 • Published 6 years ago

jupyter-parse-commandline-arguments v1.0.0

Weekly downloads
4
License
ISC
Repository
-
Last release
6 years ago

Description

This module can parse the commandline arguments to what you specify.

How to use

let acceptedArguments = {
    only: '',
    path: '',
    local: '',
}
const cmdargs = require('jupyter-parse-commandline-arguments').parseCommandlineArguments(process.argv, acceptedArguments)

console.log(cmdargs)
// {only: 'abc', path: false, local: true}

Commandline

node ./ --local --only abc