Skip to content
Snippets Groups Projects
Commit fc1d897e authored by Robin Appelman's avatar Robin Appelman
Browse files

rename app_id to app-id

parent d3bfb433
Branches
No related tags found
No related merge requests found
......@@ -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');
......
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment