Skip to content

Commit

Permalink
Deprecation for --output-dir has been added (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
inossidabile committed Nov 28, 2013
1 parent 8db0d66 commit 7bb5365
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/command.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = class Command
{name: 'help', alias: 'h', describe: 'Show this help'}
{name: 'version', describe: 'Show version'}
{name: 'output', alias: 'o', describe: 'The output directory', default: './doc'}
{name: 'output-dir'}
{name: 'theme', describe: 'The theme to be used', default: 'default'}
{name: 'name', alias: 'n', describe: 'The project name used'}
{name: 'readme', alias: 'r', describe: 'The readme file used'}
Expand Down Expand Up @@ -70,6 +71,10 @@ module.exports = class Command

@options = @prepareOptions(optimist, defaults)

if @options['output-dir']
console.log "The usage of outdated `--output-dir` option detected. Please switch to `--output`."
process.exit()

if @options.help
console.log optimist.help()
else if @options.version
Expand Down

0 comments on commit 7bb5365

Please sign in to comment.