Updated docs for --query-eval
This commit is contained in:
parent
b4bc906b6a
commit
2d3344ee34
18
README.md
18
README.md
@ -317,14 +317,16 @@ Options:
|
||||
--not-in-album Search for photos that are not in any albums.
|
||||
--query-eval CRITERIA Evaluate CRITERIA to filter photos. CRITERIA
|
||||
will be evaluated in context of the following
|
||||
list comprehension: `photos = [photo for photo
|
||||
in photos if CRITERIA]` where photo represents
|
||||
a PhotoInfo object. For example: `--query-eval
|
||||
photo.favorite` returns all photos that have
|
||||
been favorited and is equivalent to
|
||||
--favorite. You may specify more than one
|
||||
CRITERIA by using --query-eval multiple times.
|
||||
See https://rhettbull.github.io/osxphotos/ for
|
||||
python list comprehension: `photos = [photo
|
||||
for photo in photos if CRITERIA]` where photo
|
||||
represents a PhotoInfo object. For example:
|
||||
`--query-eval photo.favorite` returns all
|
||||
photos that have been favorited and is
|
||||
equivalent to --favorite. You may specify more
|
||||
than one CRITERIA by using --query-eval
|
||||
multiple times. CRITERIA must be a valid
|
||||
python expression. See
|
||||
https://rhettbull.github.io/osxphotos/ for
|
||||
additional documentation on the PhotoInfo
|
||||
class.
|
||||
|
||||
|
||||
@ -452,12 +452,13 @@ def query_options(f):
|
||||
metavar="CRITERIA",
|
||||
multiple=True,
|
||||
help="Evaluate CRITERIA to filter photos. "
|
||||
"CRITERIA will be evaluated in context of the following list comprehension: "
|
||||
"CRITERIA will be evaluated in context of the following python list comprehension: "
|
||||
"`photos = [photo for photo in photos if CRITERIA]` "
|
||||
"where photo represents a PhotoInfo object. "
|
||||
"For example: `--query-eval photo.favorite` returns all photos that have been "
|
||||
"favorited and is equivalent to --favorite. "
|
||||
"You may specify more than one CRITERIA by using --query-eval multiple times. "
|
||||
"CRITERIA must be a valid python expression. "
|
||||
"See https://rhettbull.github.io/osxphotos/ for additional documentation on the PhotoInfo class.",
|
||||
),
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user