<commit_before>import yargs from "yargs";

import { REACT } from "./constants";

const ALLOWED_FRAMEWORKS = [REACT].map(Symbol.keyFor);

let cli = yargs
  .usage("$0 command [args]")
  .help()
  .alias("help", "h", "?")
  .version()
  .alias("version", "v")
  .option("framework", {
    alias: "fw",
    description: "Set app framework",
    choices: ALLOWED_FRAMEWORKS,
    default: Symbol.keyFor(REACT),
    global: true
  })
  .commandDir("lib/commands")
  .strict();

let argv = cli.argv;

if (!argv._.length) cli.showHelp();<commit_msg>Better resolve the command dir path<commit_after>import yargs from "yargs";

import { REACT } from "./constants";
import { resolveInternal } from "./utils";

const ALLOWED_FRAMEWORKS = [REACT].map(Symbol.keyFor);

let cli = yargs
  .usage("$0 command [args]")
  .help()
  .alias("help", "h", "?")
  .version()
  .alias("version", "v")
  .option("framework", {
    alias: "fw",
    description: "Set app framework",
    choices: ALLOWED_FRAMEWORKS,
    default: Symbol.keyFor(REACT),
    global: true
  })
  .commandDir(resolveInternal("lib", "commands"))
  .strict();

let argv = cli.argv;

if (!argv._.length) cli.showHelp();
{'fraction_non_alphanumeric': 0.1842330762639246, 'fraction_numerical': 0.001713796058269066, 'mean_word_length': 3.907563025210084, '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': '4953879', 'n_tokens_mistral': 417, 'n_tokens_neox': 419, 'n_words': 97}