Bug 34077: Allow to use --category-code as the only filter option

--category-code was not checked in the "at least one filter option"
check but it is clearly a filter option.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Julian Maurice 2024-02-16 09:31:27 +01:00 committed by Martin Renvoize
parent 215b29a737
commit d5cb77532e
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ if ( !$confirm && !$verbose ) {
@type = split( /,/, join( ',', @type ) );
if ( !$file && !@type && !$before && !$after ) {
if ( !$file && !@type && !$before && !$after && !@category_code ) {
say STDERR "Missing required filter option: at least one filter option should be used";
pod2usage(2);
}