Config: Update short names for common CLI parameters #2195

This commit is contained in:
Michael Mayer 2022-04-02 20:15:23 +02:00
parent bfcd0cfde7
commit 83209884f6

View file

@ -77,12 +77,12 @@ var GlobalFlags = []cli.Flag{
EnvVar: "PHOTOPRISM_CONFIG_FILE", EnvVar: "PHOTOPRISM_CONFIG_FILE",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "config-path, conf", Name: "config-path, co",
Usage: "config `PATH` to be searched for additional configuration and settings files", Usage: "config `PATH` to be searched for additional configuration and settings files",
EnvVar: "PHOTOPRISM_CONFIG_PATH", EnvVar: "PHOTOPRISM_CONFIG_PATH",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "originals-path, media", Name: "originals-path, o",
Usage: "storage `PATH` of your original media files (photos and videos)", Usage: "storage `PATH` of your original media files (photos and videos)",
EnvVar: "PHOTOPRISM_ORIGINALS_PATH", EnvVar: "PHOTOPRISM_ORIGINALS_PATH",
}, },
@ -99,12 +99,12 @@ var GlobalFlags = []cli.Flag{
EnvVar: "PHOTOPRISM_RESOLUTION_LIMIT", EnvVar: "PHOTOPRISM_RESOLUTION_LIMIT",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "storage-path, storage", Name: "storage-path, st",
Usage: "writable storage `PATH` for cache, database, and sidecar files", Usage: "writable storage `PATH` for cache, database, and sidecar files",
EnvVar: "PHOTOPRISM_STORAGE_PATH", EnvVar: "PHOTOPRISM_STORAGE_PATH",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "import-path", Name: "import-path, im",
Usage: "base `PATH` from which files can be imported to originals (optional)", Usage: "base `PATH` from which files can be imported to originals (optional)",
EnvVar: "PHOTOPRISM_IMPORT_PATH", EnvVar: "PHOTOPRISM_IMPORT_PATH",
}, },