diff --git a/internal/commands/flag.go b/internal/commands/flag.go index 8e34c2a9..66f04254 100644 --- a/internal/commands/flag.go +++ b/internal/commands/flag.go @@ -581,6 +581,12 @@ func parseMultiaddrList(parameter string) ([]multiaddr.Multiaddr, error) { return maddrs, nil } -func prefixIDFlag(system filesystem.ID) string { - return strings.ToLower(string(system)) + "-" +func prefixIDFlag[ + T interface { + ~string + filesystem.Host | filesystem.ID + }, +](ID T, +) string { + return strings.ToLower(string(ID)) + "-" }