mirror of
https://github.com/restic/restic.git
synced 2025-08-13 10:57:38 +00:00
Accept both singular and plural for --group-by (#2330)
This commit is contained in:
@@ -31,11 +31,11 @@ func GroupSnapshots(snapshots Snapshots, options string) (map[string]Snapshots,
|
||||
|
||||
for _, option := range GroupOptionList {
|
||||
switch option {
|
||||
case "host":
|
||||
case "host", "hosts":
|
||||
GroupByHost = true
|
||||
case "paths":
|
||||
case "path", "paths":
|
||||
GroupByPath = true
|
||||
case "tags":
|
||||
case "tag", "tags":
|
||||
GroupByTag = true
|
||||
case "":
|
||||
default:
|
||||
|
Reference in New Issue
Block a user