Remove deprecated CLI flags

This commit is contained in:
Christian Bundy
2019-09-24 13:55:17 -07:00
parent eb9aba026c
commit 6d76da979e
2 changed files with 8 additions and 12 deletions

View File

@ -14,14 +14,12 @@ $ oasis --help
Usage: oasis [options]
Options:
--help Show help [boolean]
--version Show version number [boolean]
--open Automatically open app in web browser
[boolean] [default: true]
--host, --web-host Hostname for web app to listen on
[string] [default: "localhost"]
--port, --web-port Set port for web app to listen on [number] [default: 3000]
--debug Use verbose output for debugging[boolean] [default: false]
--help Show help [boolean]
--version Show version number [boolean]
--open Automatically open app in web browser [boolean] [default: true]
--host Hostname for web app to listen on [string] [default: "localhost"]
--port Set port for web app to listen on [number] [default: 3000]
--debug Use verbose output for debugging [boolean] [default: false]
```
## Installation

View File

@ -15,14 +15,12 @@ const config = yargs
.options('host', {
describe: 'Hostname for web app to listen on',
default: 'localhost',
type: 'string',
alias: 'web-host' // deprecated
type: 'string'
})
.options('port', {
describe: 'Set port for web app to listen on',
default: 3000,
type: 'number',
alias: 'web-port' // deprecated
type: 'number'
})
.options('debug', {
describe: 'Use verbose output for debugging',