Skip to content

Commit

Permalink
fix(docz-core): default value for arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Dec 26, 2018
1 parent 1329ab7 commit 5644343
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/docz-core/src/commands/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,27 +148,27 @@ export const args = (env: Env) => (yargs: any) => {
yargs.positional('typescript', {
alias: 'ts',
type: 'boolean',
default: getEnv('docz.typescript', false),
default: getEnv('docz.typescript') || false,
})
yargs.positional('propsParser', {
type: 'boolean',
default: getEnv('docz.props.parser', true),
default: getEnv('docz.props.parser') || true,
})
yargs.positional('wrapper', {
type: 'string',
default: getEnv('docz.wrapper', null),
default: getEnv('docz.wrapper') || null,
})
yargs.positional('indexHtml', {
type: 'string',
default: getEnv('docz.index.html', null),
default: getEnv('docz.index.html') || null,
})
yargs.positional('ordering', {
type: 'string',
default: getEnv('docz.ordering', 'descending'),
})
yargs.positional('debug', {
type: 'boolean',
default: getEnv('docz.debug', false),
default: getEnv('docz.debug') || false,
})
yargs.positional('host', {
type: 'string',
Expand All @@ -189,18 +189,18 @@ export const args = (env: Env) => (yargs: any) => {
})
yargs.positional('hahRouter', {
type: 'boolean',
default: getEnv('docz.hash.router', false),
default: getEnv('docz.hash.router') || false,
})
yargs.positional('native', {
type: 'boolean',
default: getEnv('docz.native', false),
default: getEnv('docz.native') || false,
})
yargs.positional('codeSandbox', {
type: 'boolean',
default: getEnv('docz.codeSandbox', true),
default: getEnv('docz.codeSandbox') || true,
})
yargs.positional('sourcemaps', {
type: 'boolean',
default: getEnv('docz.sourcemaps', true),
default: getEnv('docz.sourcemaps') || true,
})
}

0 comments on commit 5644343

Please sign in to comment.