mirror of
https://github.com/restic/restic.git
synced 2025-08-22 04:07:26 +00:00
key: return an error if subcommand is unknown
This commit is contained in:
@@ -250,9 +250,9 @@ func runKey(ctx context.Context, gopts GlobalOptions, opts KeyOptions, args []st
|
||||
}
|
||||
|
||||
return changePassword(ctx, repo, gopts, opts.NewPasswordFile)
|
||||
default:
|
||||
return errors.Fatal("invalid operation")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func loadPasswordFromFile(pwdFile string) (string, error) {
|
||||
|
Reference in New Issue
Block a user