diff --git a/src/cmds/restic/cmd_backup.go b/src/cmds/restic/cmd_backup.go index 7af1a5df9..dca861298 100644 --- a/src/cmds/restic/cmd_backup.go +++ b/src/cmds/restic/cmd_backup.go @@ -68,10 +68,10 @@ func init() { f := cmdBackup.Flags() f.StringVar(&backupOptions.Parent, "parent", "", "use this parent snapshot (default: last snapshot in the repo that has the same target files/directories)") - f.BoolVarP(&backupOptions.Force, "force", "f", false, `force re-reading the target files/directories. Overrides the "parent" flag`) + f.BoolVarP(&backupOptions.Force, "force", "f", false, `force re-reading the target files/directories (overrides the "parent" flag)`) f.StringSliceVarP(&backupOptions.Excludes, "exclude", "e", []string{}, "exclude a `pattern` (can be specified multiple times)") f.StringVar(&backupOptions.ExcludeFile, "exclude-file", "", "read exclude patterns from a file") - f.BoolVarP(&backupOptions.ExcludeOtherFS, "one-file-system", "x", false, "Exclude other file systems") + f.BoolVarP(&backupOptions.ExcludeOtherFS, "one-file-system", "x", false, "exclude other file systems") f.BoolVar(&backupOptions.Stdin, "stdin", false, "read backup from stdin") f.StringVar(&backupOptions.StdinFilename, "stdin-filename", "stdin", "file name to use when reading from stdin") f.StringSliceVar(&backupOptions.Tags, "tag", []string{}, "add a `tag` for the new snapshot (can be specified multiple times)") diff --git a/src/cmds/restic/cmd_check.go b/src/cmds/restic/cmd_check.go index 093bbe1b2..074cf6f27 100644 --- a/src/cmds/restic/cmd_check.go +++ b/src/cmds/restic/cmd_check.go @@ -38,8 +38,8 @@ func init() { cmdRoot.AddCommand(cmdCheck) f := cmdCheck.Flags() - f.BoolVar(&checkOptions.ReadData, "read-data", false, "Read all data blobs") - f.BoolVar(&checkOptions.CheckUnused, "check-unused", false, "Find unused blobs") + f.BoolVar(&checkOptions.ReadData, "read-data", false, "read all data blobs") + f.BoolVar(&checkOptions.CheckUnused, "check-unused", false, "find unused blobs") } func newReadProgress(gopts GlobalOptions, todo restic.Stat) *restic.Progress { diff --git a/src/cmds/restic/cmd_find.go b/src/cmds/restic/cmd_find.go index 0dfe32085..0eef529a6 100644 --- a/src/cmds/restic/cmd_find.go +++ b/src/cmds/restic/cmd_find.go @@ -36,9 +36,9 @@ func init() { cmdRoot.AddCommand(cmdFind) f := cmdFind.Flags() - f.StringVarP(&findOptions.Oldest, "oldest", "o", "", "Oldest modification date/time") - f.StringVarP(&findOptions.Newest, "newest", "n", "", "Newest modification date/time") - f.StringVarP(&findOptions.Snapshot, "snapshot", "s", "", "Snapshot ID to search in") + f.StringVarP(&findOptions.Oldest, "oldest", "o", "", "oldest modification date/time") + f.StringVarP(&findOptions.Newest, "newest", "n", "", "newest modification date/time") + f.StringVarP(&findOptions.Snapshot, "snapshot", "s", "", "snapshot ID to search in") } type findPattern struct { diff --git a/src/cmds/restic/cmd_unlock.go b/src/cmds/restic/cmd_unlock.go index 38004ea64..6601909cb 100644 --- a/src/cmds/restic/cmd_unlock.go +++ b/src/cmds/restic/cmd_unlock.go @@ -27,7 +27,7 @@ var unlockOptions UnlockOptions func init() { cmdRoot.AddCommand(unlockCmd) - unlockCmd.Flags().BoolVar(&unlockOptions.RemoveAll, "remove-all", false, "Remove all locks, even non-stale ones") + unlockCmd.Flags().BoolVar(&unlockOptions.RemoveAll, "remove-all", false, "remove all locks, even non-stale ones") } func runUnlock(opts UnlockOptions, gopts GlobalOptions) error { diff --git a/src/cmds/restic/cmd_version.go b/src/cmds/restic/cmd_version.go index 9290af0a3..d13ec068f 100644 --- a/src/cmds/restic/cmd_version.go +++ b/src/cmds/restic/cmd_version.go @@ -9,7 +9,7 @@ import ( var versionCmd = &cobra.Command{ Use: "version", - Short: "Print version information", + Short: "print version information", Long: ` The "version" command prints detailed information about the build environment and the version of this software.