From a609551889ff0674df0d18aefb2bc50854113981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Le=CC=81dl?= Date: Wed, 2 Jan 2013 04:34:15 +0100 Subject: [PATCH] EOL fix and credit where it's due --- bin/dissect.php | 2 +- src/Dissect/Console/Application.php | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/bin/dissect.php b/bin/dissect.php index 3b2a88b..db6b1c4 100644 --- a/bin/dissect.php +++ b/bin/dissect.php @@ -22,7 +22,7 @@ if (!class_exists('Symfony\Component\Console\Application')) { die( 'You must install the symfony/console package in order ' . - 'to use the command-line tool.' + 'to use the command-line tool.' . PHP_EOL ); } diff --git a/src/Dissect/Console/Application.php b/src/Dissect/Console/Application.php index 733566a..7e3f1a4 100644 --- a/src/Dissect/Console/Application.php +++ b/src/Dissect/Console/Application.php @@ -14,6 +14,9 @@ */ class Application extends BaseApplication { + // credit goes to everzet & kostiklv, since + // I copied the BehatApplication class when + // dealing with some CLI problems. public function __construct($version) { parent::__construct('Dissect', $version); @@ -37,14 +40,7 @@ public function getDefinition() return new InputDefinition(array( new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display this help message.'), new InputOption('--verbose', '-v', InputOption::VALUE_NONE, 'Increase verbosity of exceptions.'), - new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display this behat version.'), - new InputOption('--config', '-c', InputOption::VALUE_REQUIRED, 'Specify config file to use.'), - new InputOption('--profile', '-p', InputOption::VALUE_REQUIRED, 'Specify config profile to use.') + new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display version information.'), )); } - - // protected function getTerminalWidth() - // { - // return PHP_INT_MAX; - // } }