<commit_before>#!/usr/bin/env node
'use strict';

const meow = require('meow');
const john = require('./');
const platform = process.platform.toLowerCase();
const supportedPlatforms = require('./package').os;

(function () {
  if (supportedPlatforms.indexOf(platform) === -1) {
    return console.error(new Error(`${platform} unsupported, supported platforms: ${supportedPlatforms}`));
  }
  const platformLib = require(`./lib/${platform}`);

  const cli = meow(platformLib.cliHelpText(), platformLib.cliOptions);

  john(process.cwd(), cli.flags).then(
    deps => {
      platformLib.cliLog(deps, 'dependencies');
      console.log();
      platformLib.cliLog(deps, 'devDependencies');
    }
  );
})();
<commit_msg>cliOptions are optional<commit_after>#!/usr/bin/env node
'use strict';

const meow = require('meow');
const john = require('./');
const platform = process.platform.toLowerCase();
const supportedPlatforms = require('./package').os;

(function () {
  if (supportedPlatforms.indexOf(platform) === -1) {
    return console.error(new Error(`${platform} unsupported, supported platforms: ${supportedPlatforms}`));
  }
  const platformLib = require(`./lib/${platform}`);

  const cli = meow(
    platformLib.cliHelpText(),
    platformLib.cliOptions ? platformLib.cliOptions() : {}
  );

  john(process.cwd(), cli.flags).then(
    deps => {
      platformLib.cliLog(deps, 'dependencies');
      console.log();
      platformLib.cliLog(deps, 'devDependencies');
    }
  );
})();

{'fraction_non_alphanumeric': 0.17943548387096775, 'fraction_numerical': 0.0013440860215053765, 'mean_word_length': 4.394927536231884, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '383770', 'n_tokens_mistral': 463, 'n_tokens_neox': 458, 'n_words': 88}