diff options
Diffstat (limited to 'internal/config/args.go')
| -rw-r--r-- | internal/config/args.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/config/args.go b/internal/config/args.go index 3bfa78e..47712f9 100644 --- a/internal/config/args.go +++ b/internal/config/args.go @@ -12,7 +12,7 @@ var validPlatforms = []string{"mastodon", "linkedin"} type Args struct { GosDir string DryRun bool - Platforms []string + Platforms map[string]int // Platform name and post size limits Target int Lookback time.Duration SecretsConfigPath string @@ -21,7 +21,7 @@ type Args struct { } func (a Args) Validate() error { - for _, platform := range a.Platforms { + for platform := range a.Platforms { if !slices.Contains(validPlatforms, strings.ToLower(platform)) { return fmt.Errorf("Platform %s not supported", platform) } |
