diff --git a/cmd/restic/cmd_dump.go b/cmd/restic/cmd_debug.go similarity index 96% rename from cmd/restic/cmd_dump.go rename to cmd/restic/cmd_debug.go index 9fe500ac6..ce233c613 100644 --- a/cmd/restic/cmd_dump.go +++ b/cmd/restic/cmd_debug.go @@ -19,6 +19,11 @@ import ( "github.com/restic/restic/internal/worker" ) +var cmdDebug = &cobra.Command{ + Use: "debug", + Short: "Debug commands", +} + var cmdDump = &cobra.Command{ Use: "dump [indexes|snapshots|all|packs]", Short: "Dump data structures", @@ -32,7 +37,8 @@ is used for debugging purposes only.`, } func init() { - cmdRoot.AddCommand(cmdDump) + cmdRoot.AddCommand(cmdDebug) + cmdDebug.AddCommand(cmdDump) } func prettyPrintJSON(wr io.Writer, item interface{}) error {