Fixed metavars to be consistent, #645

This commit is contained in:
Rhet Turnbull
2022-05-03 06:34:19 -07:00
parent f42bee84c0
commit e9bbfeca52
4 changed files with 8 additions and 11 deletions

View File

@@ -630,7 +630,7 @@ Usage: osxphotos export [OPTIONS] [PHOTOS_LIBRARY]... DEST
modify this behavior. modify this behavior.
Options: Options:
--db <Photos database path> Specify Photos database path. Path to Photos --db PHOTOS_LIBRARY_PATH Specify Photos database path. Path to Photos
library/database can be specified using either library/database can be specified using either
--db or directly as PHOTOS_LIBRARY positional --db or directly as PHOTOS_LIBRARY positional
argument. If neither --db or PHOTOS_LIBRARY argument. If neither --db or PHOTOS_LIBRARY
@@ -1138,8 +1138,7 @@ Options:
iTerm2 (use with Terminal.app). This is faster iTerm2 (use with Terminal.app). This is faster
and more reliable than the default AppleScript and more reliable than the default AppleScript
interface. interface.
--report <path to export report> --report REPORT_FILE Write a CSV formatted report of all files that
Write a CSV formatted report of all files that
were exported. were exported.
--cleanup Cleanup export directory by deleting any files --cleanup Cleanup export directory by deleting any files
which were not included in this export set. which were not included in this export set.
@@ -1229,8 +1228,7 @@ Options:
not the system volume, osxphotos may run not the system volume, osxphotos may run
faster if you specify a temporary directory on faster if you specify a temporary directory on
the same volume as the Photos library. the same volume as the Photos library.
--load-config <config file path> --load-config CONFIG_FILE Load options from file as written with --save-
Load options from file as written with --save-
config. This allows you to save a complex config. This allows you to save a complex
export command to file for later reuse. For export command to file for later reuse. For
example: 'osxphotos export <lots of options example: 'osxphotos export <lots of options
@@ -1240,8 +1238,7 @@ Options:
line options are used in conjunction with line options are used in conjunction with
--load-config, they will override the --load-config, they will override the
corresponding values in the config file. corresponding values in the config file.
--save-config <config file path> --save-config CONFIG_FILE Save options to file for use with --load-
Save options to file for use with --load-
config. File format is TOML. See also config. File format is TOML. See also
--config-only. --config-only.
--config-only If specified, saves the config file but does --config-only If specified, saves the config file but does

View File

@@ -92,7 +92,7 @@ VERSION_CHECK_OPTION = click.option("--no-version-check", required=False, is_fla
DB_OPTION = click.option( DB_OPTION = click.option(
"--db", "--db",
required=False, required=False,
metavar="<Photos database path>", metavar="PHOTOS_LIBRARY_PATH",
default=None, default=None,
help=( help=(
"Specify Photos database path. " "Specify Photos database path. "

View File

@@ -505,7 +505,7 @@ from .verbose import get_verbose_console, time_stamp, verbose_print
) )
@click.option( @click.option(
"--report", "--report",
metavar="<path to export report>", metavar="REPORT_FILE",
help="Write a CSV formatted report of all files that were exported.", help="Write a CSV formatted report of all files that were exported.",
type=click.Path(), type=click.Path(),
) )
@@ -600,7 +600,7 @@ from .verbose import get_verbose_console, time_stamp, verbose_print
@click.option( @click.option(
"--load-config", "--load-config",
required=False, required=False,
metavar="<config file path>", metavar="CONFIG_FILE",
default=None, default=None,
help=( help=(
"Load options from file as written with --save-config. " "Load options from file as written with --save-config. "
@@ -615,7 +615,7 @@ from .verbose import get_verbose_console, time_stamp, verbose_print
@click.option( @click.option(
"--save-config", "--save-config",
required=False, required=False,
metavar="<config file path>", metavar="CONFIG_FILE",
default=None, default=None,
help="Save options to file for use with --load-config. File format is TOML. " help="Save options to file for use with --load-config. File format is TOML. "
"See also --config-only.", "See also --config-only.",

Binary file not shown.