mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 23:09:49 +02:00
Auto fix standard style voilations
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
var fs = require('fs')
|
||||
, chalk = require('chalk')
|
||||
, error = chalk.bold.red
|
||||
, cli = require('../lib/cli.js')
|
||||
, lib = require('../lib');
|
||||
var fs = require('fs'),
|
||||
chalk = require('chalk'),
|
||||
error = chalk.bold.red,
|
||||
cli = require('../lib/cli.js'),
|
||||
lib = require('../lib')
|
||||
|
||||
cli.parse(process.argv.slice(2), function(err, message, options) {
|
||||
cli.parse(process.argv.slice(2), function (err, message, options) {
|
||||
if (err) {
|
||||
console.error(
|
||||
error('\nYou had errors in your syntax. Use --help for further information.')
|
||||
@@ -16,12 +16,11 @@ cli.parse(process.argv.slice(2), function(err, message, options) {
|
||||
})
|
||||
|
||||
return
|
||||
}
|
||||
else if (message) {
|
||||
} else if (message) {
|
||||
console.log(message)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
lib.process(options.files, options, process.exit)
|
||||
});
|
||||
})
|
||||
|
Reference in New Issue
Block a user