From 0b873649cbbaf631057ddc039b39b90be15faa0a Mon Sep 17 00:00:00 2001 From: mpl Date: Mon, 22 Apr 2013 16:31:39 +0200 Subject: [PATCH] camput: change "name" option to "title". Title is the attribute used in the ui, and actually recorded by the indexer, so having "name" in camput was not consistent. Change-Id: I6f63e54e3b19a83031f3c56c717b27336b175284 --- cmd/camput/files.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cmd/camput/files.go b/cmd/camput/files.go index ade1a7cf2..c3124cc95 100644 --- a/cmd/camput/files.go +++ b/cmd/camput/files.go @@ -44,8 +44,8 @@ import ( ) type fileCmd struct { - name string - tag string + title string + tag string makePermanode bool // make new, unique permanode of the root (dir or file) filePermanodes bool // make planned permanodes for each file (based on their digest) @@ -71,7 +71,7 @@ func init() { " file. This permits the server to have your signing key. Used mostly with untrusted"+ " or at-risk clients, such as phones.") flags.BoolVar(&cmd.exifTime, "exiftime", false, "Try to use metadata (such as EXIF) to get a stable creation time. If found, used as the replacement for the modtime. Mainly useful with vivify or filenodes.") - flags.StringVar(&cmd.name, "name", "", "Optional name attribute to set on permanode when using -permanode.") + flags.StringVar(&cmd.title, "title", "", "Optional title attribute to set on permanode when using -permanode.") flags.StringVar(&cmd.tag, "tag", "", "Optional tag(s) to set on permanode when using -permanode or -filenodes. Single value or comma separated.") flags.BoolVar(&cmd.diskUsage, "du", false, "Dry run mode: only show disk usage information, without upload or statting dest. Used for testing skipDirs configs, mostly.") @@ -105,19 +105,19 @@ func (c *fileCmd) Usage() { func (c *fileCmd) Examples() []string { return []string{ "[opts]