Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
full terms and conditions
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* istanbul ignore next */
if (!module.parent) {
var determinebasal = init();
var argv = require('yargs')
.usage("$0 iob.json currenttemp.json glucose.json profile.json [[--auto-sens] autosens.json] [meal.json] [--reservoir reservoir.json]")
.option('auto-sens', {
alias: 'a',
describe: "Auto-sensitivity configuration",
default: true
})
.option('reservoir', {
alias: 'r',
describe: "Reservoir status file for SuperMicroBolus mode (oref1)",
default: false
})
.option('meal', {
describe: "json doc describing meals",
default: true
#!/usr/bin/env node
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var path = require("path");
// Local version replace global one
try {
var localWebpack = require.resolve(path.join(process.cwd(), "node_modules", "webpack", "bin", "webpack.js"));
if(__filename !== localWebpack) {
return require(localWebpack);
}
} catch(e) {}
var yargs = require("yargs")
.usage("webpack " + require("../package.json").version + "\n" +
"Usage: https://webpack.js.org/api/cli/\n" +
"Usage without config file: webpack [] <output>\n" +
"Usage with config file: webpack");
require("./config-yargs")(yargs);
var DISPLAY_GROUP = "Stats options:";
var BASIC_GROUP = "Basic options:";
yargs.options({
"json": {
type: "boolean",
alias: "j",
describe: "Prints the result as JSON."
},</output>
//
// node range_put --start 900
// *****************************************************************************
const fs = require('fs')
const Aerospike = require('aerospike')
const yargs = require('yargs')
const deasync = require('deasync')
const Status = Aerospike.status
// *****************************************************************************
// Options parsing
// *****************************************************************************
var argp = yargs
.usage('$0 [options]')
.options({
help: {
boolean: true,
describe: 'Display this message.'
},
host: {
alias: 'h',
default: process.env.AEROSPIKE_HOSTS || 'localhost:3000',
describe: 'Aerospike database address.'
},
timeout: {
alias: 't',
default: 1000,
describe: 'Timeout in milliseconds.'
},
#!/usr/bin/env node
/* eslint no-console: "off" */
'use strict';
const path = require('path');
const onessg = require('./index.js');
const argv = require('yargs')
.usage(`$0
$0 [-s ] [-d ] [-l ] [-c ]`)
.alias({
s: 'src',
d: 'dist',
l: 'layouts',
c: 'config',
})
.string(['s', 'd', 'l', 'c'])
.default({
s: 'src/',
d: 'dist/',
l: 'layouts/',
})
.describe({
s: 'Set the src directory',
const defaultErrorMessage = msg =>
`${emoji.get('boom')} ${chalk.red('Error')} ${emoji.get('boom')}
${msg}`
const missingAppNameError = defaultErrorMessage(chalk.red('App name must be provided'))
const folderExistsError = folderName => {
R.pipe(
defaultErrorMessage,
console.log
)(`${chalk.blue(folderName)} directory already exists`)
process.exit(1)
}
const argv = require('yargs')
.usage('$0 ')
.demandCommand(1, missingAppNameError)
.help()
.version('0.0.1')
.argv
const folderName = argv._[0]
checkFolderExists(folderName)
.then(() => folderExistsError(folderName))
.catch(() => awesomeCreateApp(folderName))
default: rc.ssl,
boolean: true,
description: 'etcd server is SSL'
},
'ca-path': {
array: true,
description: 'optional array of paths to ssl certificate authorities',
},
'cert-path': {
description: 'optional path to ssl client-cert'
},
'key-path': {
description: 'optional path to ssl cert-key'
}
},
yargs = require('yargs')
.usage('$0 [options]')
.command('config', 'list all variables in /:application/:environment')
.command('set', 'set an environment variable')
.command('unset', 'delete an environment variable')
.command('import', 'import configuration from a JSON file')
.command('nuke', 'delete configuration for current application and environment')
.command('dump', 'dump configuration for all applications and environments')
.command('merge', 'merge the configuration for two applications')
.completion('completion')
.alias('h', 'help')
.version(function() { return require('../package').version })
.alias('version', 'v')
.example('$0 [command] --help', "show the help message for a given command")
.options(options)
commands = {
config: function() {
export default function get(argv) {
return yargs
.usage('Usage: $0 [options]')
.demand(1, 'must provide a valid command')
.option('runner', {
alias: 'r',
default: 'node',
describe: 'Command used to run the test suite',
type: 'string',
global: true,
})
.option('patterns', {
alias: 'p',
default: ['.js', '.jsx', '.node'],
describe: 'Filename patterns matching your spec files',
type: 'array',
global: true,
})
'use strict';
var argv = require('yargs').
usage('Usage: uiveri5 [options] [confFile]\n' +
'confFile defaults to conf.js if presented in current working directory.').
string('libFilter').
describe('libFilter', 'Comma separated list of lib suites to execute, defaults to all').
string('specFilter').
describe('specFilter', 'Comma separated list of specs to execute, defaults to all').
string('specExclude').
describe('specExclude', 'Comma separated list of specs to exclude').
string('baseUrl').
describe('baseUrl', 'Base url to execute the spec against, defaults to http://localhost:8080').
string('seleniumAddress').
describe('seleniumAddress','Address of remote selenium server, if missing will start local webdriver').
string('seleniumHost').
describe('seleniumHost','Override the hostname to connect to local webdriver or selenium jar').
string('seleniumPort').
describe('seleniumPort','Override the default port used by the local webdriver or selenium jar').
#!/usr/bin/env node
const yargs = require("yargs");
const Client = require("./lib/client");
yargs
.usage(
"$0 ",
"run a GraphQL query",
yargs => {
yargs.positional("url", {
describe: "the GraphQL endpoint",
type: "string"
});
yargs.positional("query", {
describe: "the GraphQL query",
type: "string"
});
},
yargs => {
const c = new Client(yargs.url, yargs.query);
c.setVerbose(yargs.verbose);
_parseOptions() {
const argv = yargs
.usage('Usage: $0 [options]')
.options({
d: {
alias: 'directory',
describe: 'Run under given directory',
},
l: {
alias: 'level',
describe: 'Practice level on epic',
},
s: {
alias: 'skip',
describe: 'Skip user input',
},
t: {
alias: 'time',