bin/cli.js
function outputHelp () {
  console.log('math.js')
  console.log('https://mathjs.org')
  console.log()
  console.log('Math.js is an extensive math library for JavaScript and Node.js. It features ')
  console.log('real and complex numbers, units, matrices, a large set of mathematical')
  console.log('functions, and a flexible expression parser.')
  console.log()
  console.log('Usage:')
  console.log('    mathjs [scriptfile(s)|expression] {OPTIONS}')
  console.log()
  console.log('Options:')
  console.log('    --version, -v       Show application version')
  console.log('    --help,    -h       Show this message')
  console.log('    --tex               Generate LaTeX instead of evaluating')
  console.log('    --string            Generate string instead of evaluating')
  console.log('    --parenthesis=      Set the parenthesis option to')
  console.log('                        either of "keep", "auto" and "all"')
  console.log()
  console.log('Example usage:')
  console.log('    mathjs                                Open a command prompt')
  console.log('    mathjs 1+2                            Evaluate expression')
  console.log('    mathjs script.txt                     Run a script file')
  console.log('    mathjs script.txt script2.txt         Run two script files')
  console.log('    mathjs script.txt > results.txt       Run a script file, output to file')
  console.log('    cat script.txt | mathjs               Run input stream')
  console.log('    cat script.txt | mathjs > results.txt Run input stream, output to file')
  console.log()
  process.exit(0)
}
function outputHelp () {
  console.log('math.js')
  console.log('https://mathjs.org')
  console.log()
  console.log('Math.js is an extensive math library for JavaScript and Node.js. It features ')
  console.log('real and complex numbers, units, matrices, a large set of mathematical')
  console.log('functions, and a flexible expression parser.')
  console.log()
  console.log('Usage:')
  console.log('    mathjs [scriptfile(s)|expression] {OPTIONS}')
  console.log()
  console.log('Options:')
  console.log('    --version, -v       Show application version')
  console.log('    --help,    -h       Show this message')
  console.log('    --tex               Generate LaTeX instead of evaluating')
  console.log('    --string            Generate string instead of evaluating')
  console.log('    --parenthesis=      Set the parenthesis option to')
  console.log('                        either of "keep", "auto" and "all"')
  console.log()
  console.log('Example usage:')
  console.log('    mathjs                                Open a command prompt')
  console.log('    mathjs 1+2                            Evaluate expression')
  console.log('    mathjs script.txt                     Run a script file')
  console.log('    mathjs script.txt script2.txt         Run two script files')
  console.log('    mathjs script.txt > results.txt       Run a script file, output to file')
  console.log('    cat script.txt | mathjs               Run input stream')
  console.log('    cat script.txt | mathjs > results.txt Run input stream, output to file')
  console.log()
  process.exit(0)
}
function outputHelp ( ) { console . log ( 'math.js' ) console . log ( 'https://mathjs.org' ) console . log ( ) console . log ( 'Math.js is an extensive math library for JavaScript and Node.js. It features ' ) console . log ( 'real and complex numbers, units, matrices, a large set of mathematical' ) console . log ( 'functions, and a flexible expression parser.' ) console . log ( ) console . log ( 'Usage:' ) console . log ( '    mathjs [scriptfile(s)|expression] {OPTIONS}' ) console . log ( ) console . log ( 'Options:' ) console . log ( '    --version, -v       Show application version' ) console . log ( '    --help,    -h       Show this message' ) console . log ( '    --tex               Generate LaTeX instead of evaluating' ) console . log ( '    --string            Generate string instead of evaluating' ) console . log ( '    --parenthesis=      Set the parenthesis option to' ) console . log ( '                        either of "keep", "auto" and "all"' ) console . log ( ) console . log ( 'Example usage:' ) console . log ( '    mathjs                                Open a command prompt' ) console . log ( '    mathjs 1+2                            Evaluate expression' ) console . log ( '    mathjs script.txt                     Run a script file' ) console . log ( '    mathjs script.txt script2.txt         Run two script files' ) console . log ( '    mathjs script.txt > results.txt       Run a script file, output to file' ) console . log ( '    cat script.txt | mathjs               Run input stream' ) console . log ( '    cat script.txt | mathjs > results.txt Run input stream, output to file' ) console . log ( ) process . exit ( 0 ) }
Output a help message
Output a help message