newInvalidArgsError creates a standardized error for invalid arguments
(ctx context.Context, key string, args []string)
| 81 | |
| 82 | // newInvalidArgsError creates a standardized error for invalid arguments |
| 83 | func newInvalidArgsError(ctx context.Context, key string, args []string) error { |
| 84 | return newOptionArgumentError(ctx, key, "Invalid %s arguments: %s", key, args) |
| 85 | } |
| 86 | |
| 87 | // newInvalidArgumentError creates a standardized error for an invalid single argument |
| 88 | func newInvalidArgumentError(ctx context.Context, key, arg string, expected ...string) error { |
no test coverage detected