<commit_before>import { promiseResolve, promiseReject, isPromise } from 'azk/utils/promises';
import { Cli as AzkCli } from 'azk/cli/cli';
import { UI } from 'azk/cli/ui';
import { InvalidCommandError } from 'azk/utils/errors';

export class Cli extends AzkCli {
  invalidCmd(error) {
    this.fail("commands.not_found", error.command);
    this.showUsage();
    return promiseResolve(1);
  }
}

export function cli(args, cwd, ui = UI) {
  var result;
  try {
    var azk_cli = new Cli();
    azk_cli
      // Options
      .route('help', (p) => p.help || p['--help'])
      .route('version', (p) => p.version || p['--version'])
      // Commands
      .route('agent')
      .route('vm')<commit_msg>[Cli] Show help if there are no arguments<commit_after>import { _ } from 'azk';
import { promiseResolve, promiseReject, isPromise } from 'azk/utils/promises';
import { Cli as AzkCli } from 'azk/cli/cli';
import { UI } from 'azk/cli/ui';
import { InvalidCommandError } from 'azk/utils/errors';

export class Cli extends AzkCli {
  invalidCmd(error) {
    this.fail("commands.not_found", error.command);
    this.showUsage();
    return promiseResolve(1);
  }
}

export function cli(args, cwd, ui = UI) {
  var result;
  try {
    var azk_cli = new Cli();
    azk_cli
      // Options
      .route('help', (p) => p.help || p['--help'] || _.isEmpty(args))
      .route('version', (p) => p.version || p['--version'])
      // Commands
      .route('agent')
      .route('vm')
{'fraction_non_alphanumeric': 0.17006802721088435, 'fraction_numerical': 0.0013605442176870747, 'mean_word_length': 3.1204481792717087, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2799581', 'n_tokens_mistral': 513, 'n_tokens_neox': 504, 'n_words': 124}