Skip to content
Snippets Groups Projects
Commit fde5e9f4 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- minor fix in description

- removed outdated args
parent 93d1c57f
No related branches found
No related tags found
No related merge requests found
...@@ -20,15 +20,13 @@ and return count of matches. ...@@ -20,15 +20,13 @@ and return count of matches.
Examples: Examples:
* Is this dc identifier in archive? * Is this dc identifier in archive?
$0 count -d SLUB:LZA:Kitodo:kitodo:422766 '$0 count -d SLUB:LZA:Kitodo:kitodo:422766'
* How many AIPs were modified in 2021-05-31? * How many AIPs were modified in 2021-05-31?
$0 count -m 2021-05-31 '$0 count -m 2021-05-31'
* How many AIPs have at least one invalid file? * How many AIPs have at least one invalid file?
$0 count --with-invalid-files '$0 count --with-invalid-files'
* How many AIPs with mkv-files are in archive? * How many AIPs with mkv-files are in archive?
$0 count --with-format=fmt/569 '$0 count --with-format=fmt/569'
* How many AIPs have at least one file without virus check?
$0 count --with-missed-viruscheck
DESCR DESCR
sub description { sub description {
...@@ -43,23 +41,14 @@ sub opt_spec { ...@@ -43,23 +41,14 @@ sub opt_spec {
["creationdate|c=s" => "search based on creationdate string"], ["creationdate|c=s" => "search based on creationdate string"],
["modificationdate|m=s" => "search based on modificationdate string"] ["modificationdate|m=s" => "search based on modificationdate string"]
] } ], ] } ],
[ "lzaid|l=s", "count AIPs by given LZA id"], ["lzaid|l=s", "count AIPs by given LZA id"],
["descriptive|d=s" => "count based on string search in descriptive metadata"], ["descriptive|d=s" => "count based on string search in descriptive metadata"],
["source|s=s" => "count based on string search in source metadata"], ["source|s=s" => "count based on string search in source metadata"],
["aip|a=s" => "count AIPs by given AIP id"], ["aip|a=s" => "count AIPs by given AIP id"],
["format" => hidden => {one_of => [ ["format" => hidden => {one_of => [
["with-format=s" => "with pronom format id"], ["pronom-id=s" => "with pronom format id"],
#["without-format=s" => "without pronom format id"], #["without-format=s" => "without pronom format id"],
] } ], ] } ],
["validation" => hidden => {one_of => [
["with-valid-files" => "with valid files"],
["with-invalid-files" => "with at least one invalid file"],
] } ],
["viruscheck" => hidden => {one_of => [
["with-passed-viruschecks" => "with passed virus checks"],
["with-missed-viruschecks" => "with missed virus checks"],
["with-failed-viruschecks" => "with failed virus checks"],
]}],
); );
} }
sub validate_args { sub validate_args {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment