The "-i" option requires a valid deviceId from the "-d" option. Error
out early if it is missing. Also mention the fact in the help text.
Extend help text for the positional arguments, the files can be specified
as Urls, document IDs or inodes (with -i).
Move parsing of the -d and -i options out of the loops.