<commit_before>'use strict';

var Base = require('base');
var tasks = require('base-tasks');
var cli = require('base-cli');
var argv = require('./');
var app = new Base();

// register plugins
app.use(cli());
app.use(tasks());
app.use(argv());

app.task('foo', function(cb) {
  console.log('task > default');
  cb();
});

// parse argv
var args = app.argv(['--a=b:c', '--a=d:e', '--f g']);
console.log(args)

var args = app.argv(['--a:b:c', '--a:d:e', '--f g']);
console.log(args)

var args = app.argv(['--a:b=c', '--a d:e', '--f g']);
console.log(args)

var args = app.argv(['foo', 'bar', '--set=a:b']);
console.log(args)
<commit_msg>update examples to show escaping file paths<commit_after>'use strict';

var Base = require('base');
var tasks = require('base-task');
var cli = require('base-cli');
var argv = require('./');
var app = new Base();

// register plugins
app.use(cli());
app.use(tasks());
app.use(argv());

app.task('foo', function(cb) {
  console.log('task > default');
  cb();
});

// parse argv
var args = app.argv(['--a=b:c', '--a=d:e', '--f g']);
console.log(args)

var args = app.argv(['--a:b:c', '--a:d:e', '--f g']);
console.log(args)

var args = app.argv(['--a:b=c', '--a d:e', '--f g']);
console.log(args)

var args = app.argv(['foo', 'bar', '--set=a:b']);
console.log(args)

var args = app.argv(['--file=index.js']);
console.log(args)

var args = app.argv(['--file=index.js'], {esc: ['file']});
console.log(args)

{'fraction_non_alphanumeric': 0.2865090403337969, 'fraction_numerical': 0.0, 'mean_word_length': 4.157706093189964, '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': '2163903', 'n_tokens_mistral': 563, 'n_tokens_neox': 561, 'n_words': 132}