From 3a478bc52267c9d2777acebed9924c799b62d97f Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 5 Aug 2023 12:35:45 +0200 Subject: [PATCH] unify snapshotID spelling in command parameters --- cmd/restic/cmd_diff.go | 2 +- cmd/restic/cmd_dump.go | 2 +- cmd/restic/cmd_restore.go | 2 +- cmd/restic/cmd_tag.go | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/restic/cmd_diff.go b/cmd/restic/cmd_diff.go index d9128e3ef..accd55db2 100644 --- a/cmd/restic/cmd_diff.go +++ b/cmd/restic/cmd_diff.go @@ -16,7 +16,7 @@ import ( ) var cmdDiff = &cobra.Command{ - Use: "diff [flags] snapshot-ID snapshot-ID", + Use: "diff [flags] snapshotID snapshotID", Short: "Show differences between two snapshots", Long: ` The "diff" command shows differences from the first to the second snapshot. The diff --git a/cmd/restic/cmd_dump.go b/cmd/restic/cmd_dump.go index 348c64169..325607017 100644 --- a/cmd/restic/cmd_dump.go +++ b/cmd/restic/cmd_dump.go @@ -24,7 +24,7 @@ single file is selected, it prints its contents to stdout. Folders are output as a tar (default) or zip file containing the contents of the specified folder. Pass "/" as file name to dump the whole snapshot as an archive file. -The special snapshot "latest" can be used to use the latest snapshot in the +The special snapshotID "latest" can be used to use the latest snapshot in the repository. To include the folder content at the root of the archive, you can use the diff --git a/cmd/restic/cmd_restore.go b/cmd/restic/cmd_restore.go index 60e657a97..89c9739e6 100644 --- a/cmd/restic/cmd_restore.go +++ b/cmd/restic/cmd_restore.go @@ -25,7 +25,7 @@ var cmdRestore = &cobra.Command{ The "restore" command extracts the data from a snapshot from the repository to a directory. -The special snapshot "latest" can be used to restore the latest snapshot in the +The special snapshotID "latest" can be used to restore the latest snapshot in the repository. To only restore a specific subfolder, you can use the ":" diff --git a/cmd/restic/cmd_tag.go b/cmd/restic/cmd_tag.go index fe4638547..1ad465faa 100644 --- a/cmd/restic/cmd_tag.go +++ b/cmd/restic/cmd_tag.go @@ -12,7 +12,7 @@ import ( ) var cmdTag = &cobra.Command{ - Use: "tag [flags] [snapshot-ID ...]", + Use: "tag [flags] [snapshotID ...]", Short: "Modify tags on snapshots", Long: ` The "tag" command allows you to modify tags on exiting snapshots. @@ -20,7 +20,7 @@ The "tag" command allows you to modify tags on exiting snapshots. You can either set/replace the entire set of tags on a snapshot, or add tags to/remove tags from the existing set. -When no snapshot-ID is given, all snapshots matching the host, tag and path filter criteria are modified. +When no snapshotID is given, all snapshots matching the host, tag and path filter criteria are modified. EXIT STATUS ===========