rename app_id to app-id

This commit is contained in:
Robin Appelman 2013-11-25 17:28:01 +01:00
parent d3bfb433d1
commit fc1d897ea5
2 changed files with 4 additions and 4 deletions

View File

@ -19,14 +19,14 @@ class Disable extends Command {
->setName('app:disable')
->setDescription('disable an app')
->addArgument(
'app_id',
'app-id',
InputArgument::REQUIRED,
'disable the specified app'
);
}
protected function execute(InputInterface $input, OutputInterface $output) {
$appId = $input->getArgument('app_id');
$appId = $input->getArgument('app-id');
if (\OC_App::isEnabled($appId)) {
\OC_App::disable($appId);
$output->writeln($appId . ' disabled');

View File

@ -19,14 +19,14 @@ class Enable extends Command {
->setName('app:enable')
->setDescription('enable an app')
->addArgument(
'app_id',
'app-id',
InputArgument::REQUIRED,
'enable the specified app'
);
}
protected function execute(InputInterface $input, OutputInterface $output) {
$appId = $input->getArgument('app_id');
$appId = $input->getArgument('app-id');
if (\OC_App::isEnabled($appId)) {
$output->writeln($appId . ' is already enabled');
} else if (!\OC_App::getAppPath($appId)) {