added --version to cmd_line
This commit is contained in:
@@ -19,6 +19,7 @@ import objc
|
|||||||
from Foundation import *
|
from Foundation import *
|
||||||
|
|
||||||
from . import _applescript
|
from . import _applescript
|
||||||
|
from ._version import __version__
|
||||||
|
|
||||||
# TODO: find edited photos: see https://github.com/orangeturtle739/photos-export/blob/master/extract_photos.py
|
# TODO: find edited photos: see https://github.com/orangeturtle739/photos-export/blob/master/extract_photos.py
|
||||||
# TODO: Add test for imageTimeZoneOffsetSeconds = None
|
# TODO: Add test for imageTimeZoneOffsetSeconds = None
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
""" version info """
|
""" version info """
|
||||||
|
|
||||||
__version__ = "0.14.13"
|
__version__ = "0.14.14"
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ import yaml
|
|||||||
|
|
||||||
import osxphotos
|
import osxphotos
|
||||||
|
|
||||||
|
from ._version import __version__
|
||||||
|
|
||||||
# TODO: add "--any" to search any field (e.g. keyword, description, name contains "wedding") (add case insensitive option)
|
# TODO: add "--any" to search any field (e.g. keyword, description, name contains "wedding") (add case insensitive option)
|
||||||
|
|
||||||
|
|
||||||
@@ -37,6 +39,7 @@ CTX_SETTINGS = dict(help_option_names=["-h", "--help"])
|
|||||||
help="Print output in JSON format",
|
help="Print output in JSON format",
|
||||||
)
|
)
|
||||||
@click.option("--debug", required=False, is_flag=True, default=False, hidden=True)
|
@click.option("--debug", required=False, is_flag=True, default=False, hidden=True)
|
||||||
|
@click.version_option(__version__, "--version", "-v")
|
||||||
@click.pass_context
|
@click.pass_context
|
||||||
def cli(ctx, db, json, debug):
|
def cli(ctx, db, json, debug):
|
||||||
ctx.obj = CLI_Obj(db=db, json=json, debug=debug)
|
ctx.obj = CLI_Obj(db=db, json=json, debug=debug)
|
||||||
@@ -188,8 +191,8 @@ def query(
|
|||||||
missing,
|
missing,
|
||||||
not_missing,
|
not_missing,
|
||||||
):
|
):
|
||||||
""" Query the Photos database using 1 or more search options\n
|
""" query the Photos database using 1 or more search options;
|
||||||
If more than one option is provided, they are treated as "AND"
|
if more than one option is provided, they are treated as "AND"
|
||||||
(e.g. search for photos matching all options)
|
(e.g. search for photos matching all options)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user