Skip to content

Commit

Permalink
GenerateDocuCommand: validating input arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanda committed Nov 21, 2017
1 parent e1d61f3 commit 6819aca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Console/GenerateDocuCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ protected function configure(): void

public function initialize(InputInterface $input, OutputInterface $output): void
{
$input->validate();

$this->inputDirectory = $input->getArgument('inputDirectory');
$this->outputDirectory = $input->getArgument('outputDirectory');
$this->authCredentials = new AuthCredentials(
Expand Down
2 changes: 1 addition & 1 deletion src/anabelle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php

require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../../../autoload.php';

use Symfony\Component\Console\Application;
use Ublaboo\Anabelle\Console\GenerateDocuCommand;
Expand Down

0 comments on commit 6819aca

Please sign in to comment.