Experiment with common-good module

This commit is contained in:
Christian Bundy
2020-01-21 16:22:19 -08:00
parent cb4a6ef971
commit b34b04c2c2
22 changed files with 2133 additions and 3641 deletions

View File

@ -1,37 +1,37 @@
'use strict'
"use strict";
const yargs = require('yargs')
const yargs = require("yargs");
module.exports = () =>
yargs
.scriptName('oasis')
.env('OASIS')
.help('h')
.alias('h', 'help')
.usage('Usage: $0 [options]')
.options('open', {
describe: 'Automatically open app in web browser. Use --no-open to disable.',
.scriptName("oasis")
.env("OASIS")
.help("h")
.alias("h", "help")
.usage("Usage: $0 [options]")
.options("open", {
describe:
"Automatically open app in web browser. Use --no-open to disable.",
default: true,
type: 'boolean'
type: "boolean"
})
.options('offline', {
.options("offline", {
describe: "Don't try to connect to scuttlebutt peers or pubs",
default: false,
type: 'boolean'
type: "boolean"
})
.options('host', {
describe: 'Hostname for web app to listen on',
default: 'localhost',
type: 'string'
.options("host", {
describe: "Hostname for web app to listen on",
default: "localhost",
type: "string"
})
.options('port', {
describe: 'Port for web app to listen on',
.options("port", {
describe: "Port for web app to listen on",
default: 3000,
type: 'number'
type: "number"
})
.options('debug', {
describe: 'Use verbose output for debugging',
.options("debug", {
describe: "Use verbose output for debugging",
default: false,
type: 'boolean'
})
.argv
type: "boolean"
}).argv;