<commit_before>#!/usr/bin/env node

const chalk = require('chalk')
const minimist = require('minimist')
const spoof = require('../')
const { stripIndent } = require('common-tags')

const argv = minimist(process.argv.slice(2), {
  alias: {
    v: version
  }
})
const cmd = argv._[0]

try {
  init()
} catch (err) {
  console.error(chalk.red('Error:', err.message))
  process.exitCode = -1
}

function init () {
  if (cmd === 'version' || argv.version) {
    version()
  } else if (cmd === 'list' || cmd === 'ls') {
    list()
  } else if (cmd === 'set') {
    const mac = argv._[1]<commit_msg>Fix -v flag throwing an error<commit_after>#!/usr/bin/env node

const chalk = require('chalk')
const minimist = require('minimist')
const spoof = require('../')
const { stripIndent } = require('common-tags')

const argv = minimist(process.argv.slice(2), {
  alias: {
    v: 'version'
  },
  boolean: [
    'version'
  ]
})
const cmd = argv._[0]

try {
  init()
} catch (err) {
  console.error(chalk.red('Error:', err.message))
  process.exitCode = -1
}

function init () {
  if (cmd === 'version' || argv.version) {
    version()
  } else if (cmd === 'list' || cmd === 'ls') {
    list()
  } else if (cmd === 'set') {
    const mac = argv._[1]
{'fraction_non_alphanumeric': 0.20307443365695793, 'fraction_numerical': 0.006472491909385114, 'mean_word_length': 3.2802768166089966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4244034', 'n_tokens_mistral': 453, 'n_tokens_neox': 449, 'n_words': 110}