<commit_before>var path = require('path');
var _ = require('lodash');
var Iterator = require('./iterator');

var DEFAULT_OPTIONS = {
    required: false,
    args: 0
};

function CLI() {
    this.options = [];
}

CLI.prototype.option = function (flag, alias, desc, required, args, def) {
    var option;
    if (_.isPlainObject(flag)) {
        option = _.defaults(flag, DEFAULT_OPTIONS);
    } else {
        option = {
            flag: flag,
            alias: alias,
            desc: desc,
            required: required || false,
            args: args || 0,
            def: def
        };
    }
    this.options.push(option);<commit_msg>Update cli.js<commit_after>var path = require('path');
var _ = require('lodash');
var Iterator = require('./iterator');

var DEFAULT_OPTIONS = {
    required: false,
    args: 0
};

/**
 var argv = cli
    .option('h', 'host', 'target hostname/ip', true, 1)
    .option('', 'port', 'target port', false, 1, "22")
    .option('u', 'username', 'username for authentication', false, 1, 'admin')
    .option('p', 'password', '<PASSWORD> authentication', false, 1, 'default')
    .option('f', 'file-list', 'file list to synchronize', false, 1, 'filelist.json')
    .parse();
 */

function CLI() {
    this.options = [];
}

CLI.prototype.option = function (flag, alias, desc, required, args, def) {
    var option;
    if (_.isPlainObject(flag)) {
        option = _.defaults(flag, DEFAULT_OPTIONS);
    } else {
        option = {
            flag: flag,
            alias: alias,
            desc: desc,
            required: required || false,
            args: args || 0,
            def: def
        };
    }
    this.options.push(option);
{'fraction_non_alphanumeric': 0.1622103386809269, 'fraction_numerical': 0.006535947712418301, 'mean_word_length': 2.321499013806706, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2830107', 'n_tokens_mistral': 532, 'n_tokens_neox': 516, 'n_words': 139}