List of image files from command line.
A class that can be used by any program that takes a number of images
as command line arguments. Normally, call the arghandler method for
each command line argument of the program, and finally just use the
result as a list of file names.
|
Methods
|
|
addglob arghandler sendall
|
|
|
addglob
|
addglob ( self, pattern )
Add all files matching the glob pattern pattern to the list |
|
|
arghandler
|
arghandler ( self, arg )
Handle command line argument arg.
If arg is recognized as an image file name, it is added to the list, and 1
is returned. If arg is not recognized, 0 is returned. |
|
|
sendall
|
sendall (
self,
reader,
verbose=0,
)
Send all image file names in order to the imagereader object reader.
If verbose=1, each of the file names is printed before the reader is
called. |
|