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

'use strict';

var exporter = require('./index');
var program = require('commander');
var pkgInfo = require('../package.json');

program
    .version(pkgInfo.version)
    .option('-i, --input <file>', 'Input file')
    .option('-o, --output [file]', 'Output file', 'lib.js')
    .option('-e, --exports <path>', 'Exported path from GWT')
    .option('-p, --package [file]', 'Take information from a package.json file')
    .parse(process.argv);

exporter(program).catch(function (e) {
    console.error(e.message);
    process.exit(1);
});<commit_msg>cli : log path of output file if success<commit_after>#!/usr/bin/env node

'use strict';

var exporter = require('./index');
var program = require('commander');
var pkgInfo = require('../package.json');

program
    .version(pkgInfo.version)
    .option('-i, --input <file>', 'Input file')
    .option('-o, --output [file]', 'Output file', 'lib.js')
    .option('-e, --exports <path>', 'Exported path from GWT')
    .option('-p, --package [file]', 'Take information from a package.json file')
    .parse(process.argv);

exporter(program).then(function () {
    console.log(require('path').resolve(program.output) + ' written');
}, function (e) {
    console.error(e.message);
    process.exit(1);
});
{'fraction_non_alphanumeric': 0.20917573872472783, 'fraction_numerical': 0.0015552099533437014, 'mean_word_length': 3.8022388059701493, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5026006', 'n_tokens_mistral': 426, 'n_tokens_neox': 425, 'n_words': 104}