16 lines
328 B
JavaScript
Executable File
16 lines
328 B
JavaScript
Executable File
import yargs from 'yargs';
|
|
|
|
const { argv } = yargs(process.argv.slice(2))
|
|
.option('debug', {
|
|
describe: 'Show error stack traces and inputs',
|
|
type: 'boolean',
|
|
default: process.env.NODE_ENV === 'development',
|
|
})
|
|
.option('ip', {
|
|
describe: 'Mock IP address',
|
|
type: 'string',
|
|
default: null,
|
|
});
|
|
|
|
export default argv;
|