Fix short-hand option clash

This commit is contained in:
Alexander Neumann 2016-09-29 20:37:45 +02:00
parent 3114d41cb7
commit e994cacbfe
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ func init() {
flags.StringSliceVarP(&restoreOptions.Include, "include", "i", nil, "include a pattern, exclude everything else (can be specified multiple times)")
flags.StringVarP(&restoreOptions.Target, "target", "t", "", "directory to extract data to")
flags.StringVarP(&restoreOptions.Host, "host", "h", "", `only consider snapshots for this host when the snapshot ID is "latest"`)
flags.StringSliceVarP(&restoreOptions.Paths, "path", "p", nil, `only consider snapshots which include this (absolute) path for snapshot ID "latest"`)
flags.StringVarP(&restoreOptions.Host, "host", "H", "", `only consider snapshots for this host when the snapshot ID is "latest"`)
flags.StringSliceVar(&restoreOptions.Paths, "path", nil, `only consider snapshots which include this (absolute) path for snapshot ID "latest"`)
}
func runRestore(opts RestoreOptions, gopts GlobalOptions, args []string) error {