The archive-tool check command requires at least two positional arguments (unless the --stdin flag is used), archive and files. This should be changed such that the files argument is optional. If not provided, the base directory from the archive should be taken as the default.
E.g. assume an archive foo.tar.gz having the base directory foo. At the moment, the command
$ archive-tool check foo.tar.gz foo
will check if all files in foo are in the archive. Omitting the files argument yields an error:
$ archive-tool check foo.tar.gz
usage: archive-tool [-h] {create,verify,ls,info,check,diff,find} ...
archive-tool: error: either --stdin or the files argument is required
This should be changed so that the files argument is optional and defaults to foo in this case.
The
archive-tool check
command requires at least two positional arguments (unless the--stdin
flag is used),archive
andfiles
. This should be changed such that thefiles
argument is optional. If not provided, the base directory from the archive should be taken as the default.E.g. assume an archive
foo.tar.gz
having the base directoryfoo
. At the moment, the commandwill check if all files in
foo
are in the archive. Omitting thefiles
argument yields an error:This should be changed so that the
files
argument is optional and defaults tofoo
in this case.