lib/driver/cli.js
function showIfHelp (args, description) {
  const name = path.basename(args[1])
  const opts = args.slice(2)

  if (!(opts.length === 1 && ['--help', '-h', '-?'].includes(opts[0]))) {
    return false
  }

  console.log(`Usage: ${name} ...[state-machine-spec]`)
  console.log('')
  console.log(description)
  return true
}
function showIfHelp (args, description) {
  const name = path.basename(args[1])
  const opts = args.slice(2)

  if (!(opts.length === 1 && ['--help', '-h', '-?'].includes(opts[0]))) {
    return false
  }

  console.log(`Usage: ${name} ...[state-machine-spec]`)
  console.log('')
  console.log(description)
  return true
}
readlines