Improved CLI flag usage hints; added author & email

This commit is contained in:
Michael Mayer 2018-09-18 09:40:09 +02:00
parent 78b0e2e1e2
commit 706166ac98

View file

@ -14,6 +14,8 @@ func main() {
app.Name = "PhotoPrism" app.Name = "PhotoPrism"
app.Usage = "Digital Photo Archive" app.Usage = "Digital Photo Archive"
app.Version = "0.0.0" app.Version = "0.0.0"
app.Author = "Michael Mayer"
app.Email = "michael@liquidbytes.net"
app.Flags = globalCliFlags app.Flags = globalCliFlags
app.Commands = []cli.Command{ app.Commands = []cli.Command{
{ {
@ -290,47 +292,47 @@ var globalCliFlags = []cli.Flag{
}, },
cli.StringFlag{ cli.StringFlag{
Name: "config-file, c", Name: "config-file, c",
Usage: "config filename", Usage: "load configuration from `FILENAME`",
Value: "/etc/photoprism/photoprism.yml", Value: "/etc/photoprism/photoprism.yml",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "darktable-cli", Name: "darktable-cli",
Usage: "darktable CLI", Usage: "darktable command-line executable `FILENAME`",
Value: "/usr/bin/darktable-cli", Value: "/usr/bin/darktable-cli",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "originals-path", Name: "originals-path",
Usage: "originals path", Usage: "originals `PATH`",
Value: "/var/photoprism/photos/originals", Value: "/var/photoprism/photos/originals",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "thumbnails-path", Name: "thumbnails-path",
Usage: "thumbnails path", Usage: "thumbnails `PATH`",
Value: "/var/photoprism/photos/thumbnails", Value: "/var/photoprism/photos/thumbnails",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "import-path", Name: "import-path",
Usage: "import path", Usage: "import `PATH`",
Value: "/var/photoprism/photos/import", Value: "/var/photoprism/photos/import",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "export-path", Name: "export-path",
Usage: "export path", Usage: "export `PATH`",
Value: "/var/photoprism/photos/export", Value: "/var/photoprism/photos/export",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "assets-path", Name: "assets-path",
Usage: "assets path", Usage: "assets `PATH`",
Value: "/var/photoprism", Value: "/var/photoprism",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "database-driver", Name: "database-driver",
Usage: "database driver (mysql, mssql, postgres or sqlite)", Usage: "database `DRIVER` (mysql, mssql, postgres or sqlite)",
Value: "mysql", Value: "mysql",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "database-dsn", Name: "database-dsn",
Usage: "database data source name (DSN)", Usage: "database data source name (`DSN`)",
Value: "photoprism:photoprism@tcp(localhost:3306)/photoprism", Value: "photoprism:photoprism@tcp(localhost:3306)/photoprism",
}, },
} }