<commit_before><?php
namespace Slik\Uncia;
use Slik\Uncia\Exception\SyntaxError;

require_once __DIR__ . '/Exception.php';

class Args
{
	public $description;

	public function __construct($description)
	{
		$this->description = $description;
		$this->bool('-h, --help')->description('See help and usage');
		$this->bool('-d, --debug')->description('Enable full traceback reports');
	}

	public function __invoke($args)
	{
		return $this->parse($args);
	}

	public function bool($arg)
	{
		return $this->add($arg, 'Boolean');
	}

	public function int($arg)
	{
		return $this->add($arg, 'Integer');
	}

	public function str($arg)
	{
		return $this->add($arg, 'String');
	}

	public function parse($args = null, $throw = false)<commit_msg>Args: string alias to str<commit_after><?php
namespace Slik\Uncia;
use Slik\Uncia\Exception\SyntaxError;

require_once __DIR__ . '/Exception.php';

class Args
{
	public $description;

	public function __construct($description)
	{
		$this->description = $description;
		$this->bool('-h, --help')->description('See help and usage');
		$this->bool('-d, --debug')->description('Enable full traceback reports');
	}

	public function __invoke($args)
	{
		return $this->parse($args);
	}

	public function bool($arg)
	{
		return $this->add($arg, 'Boolean');
	}

	public function int($arg)
	{
		return $this->add($arg, 'Integer');
	}

	public function str($arg)
	{
		return $this->add($arg, 'String');
	}

	public function string($arg)
	{
		return $this->str($arg);
	}

	public function parse($args = null, $throw = false)
{'fraction_non_alphanumeric': 0.1774193548387097, 'fraction_numerical': 0.0, 'mean_word_length': 4.519572953736655, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, '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': '7014822', 'n_tokens_mistral': 544, 'n_tokens_neox': 518, 'n_words': 120}