'use strict'

var fmt = require('../fmt')

// @todo: do something better here...
module.exports = function () {
	console.log(
		'\nUsage\n  fly [options] [tasks]\n\nOptions\n  -h  --help      Display this help.\n  -f  --file      Use an alternate Flyfile.\n  -l  --list      Display available tasks.\n  -v  --version   Display version.\n  '
			.replace(/(\s--)(.*?)\s/g, String(fmt.dim.bold('$1') + fmt.bold('$2')))
			.replace(/(-)(.\s)/g, String(fmt.dim.bold('$1') + fmt.bold('$2')))
			.replace(/(^Options|^Usage)/gm, String(fmt.dim.bold('$1')))
			.replace(/([_\/\\]|[_,])/gm, String(fmt.dim.bold('$1')))
	)
}

'use strict'

var fmt = require('../fmt')

// @todo: do something better here...
module.exports = function () {
	const one = `${fmt.text.dim('$1')}`;
	const two = `${fmt.text('$2')}`;
	const str = `
Usage
  fly [options] [tasks]

Options
  -h  --help      Display this help message.
  -f  --file      Use an alternate Flyfile.
  -l  --list      Display available tasks.
  -v  --version   Display Fly version.
	`;

	console.log(str
		.replace(/(\s--)(.*?)\s/g, `${one}${two}`)
		.replace(/(-)(.\s)/g, `${one}${two}`)
		.replace(/(^Options|^Usage)/gm, one)
		.replace(/([_\/\\]|[_,])/gm, one)
	)
}

convert fly.help