From 3b9221c7d25a73424c3e211f0fa911590838cec1 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Wed, 13 Nov 2019 20:24:59 +0100 Subject: [PATCH] Ensured options for short.url:list command have required values --- module/CLI/src/Command/ShortUrl/ListShortUrlsCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/CLI/src/Command/ShortUrl/ListShortUrlsCommand.php b/module/CLI/src/Command/ShortUrl/ListShortUrlsCommand.php index 0ae0b369..3d9b528d 100644 --- a/module/CLI/src/Command/ShortUrl/ListShortUrlsCommand.php +++ b/module/CLI/src/Command/ShortUrl/ListShortUrlsCommand.php @@ -62,26 +62,26 @@ class ListShortUrlsCommand extends Command ->addOption( 'page', 'p', - InputOption::VALUE_OPTIONAL, + InputOption::VALUE_REQUIRED, sprintf('The first page to list (%s items per page)', ShortUrlRepositoryAdapter::ITEMS_PER_PAGE), '1' ) ->addOption( 'searchTerm', 's', - InputOption::VALUE_OPTIONAL, + InputOption::VALUE_REQUIRED, 'A query used to filter results by searching for it on the longUrl and shortCode fields' ) ->addOption( 'tags', 't', - InputOption::VALUE_OPTIONAL, + InputOption::VALUE_REQUIRED, 'A comma-separated list of tags to filter results' ) ->addOption( 'orderBy', 'o', - InputOption::VALUE_OPTIONAL, + InputOption::VALUE_REQUIRED, 'The field from which we want to order by. Pass ASC or DESC separated by a comma' ) ->addOption('showTags', null, InputOption::VALUE_NONE, 'Whether to display the tags or not');