User tests: Successful: Unsuccessful:
This will add validation for arguments passed on the command line.
command
argumentsAssures that there are no duplicates. If a duplicate is found a message similar to the following is generated:
ERROR: The command "Application\Command\Database\Migrate" tried to add option "v" already defined in the application.
The method TrackerCommand::getOption()
has been added to validate and fetch command line arguments from the input. Required code changes:
// Before:
$option = $this->getApplication()->input->get('longName', $this->getApplication()->input->get('shortName'));
// After:
$option = $this->getOption('longName');
This will look for both long and short name.
e.g.
$ jtracker --foo
will result in
ERROR: The argument "foo" is not recognized.
-v
has been removed from commands database migrate
and update server
.--version
instead.Status | New | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-07-22 18:53:50 |
Closed_By | ⇒ | mbabker |