#!/usr/bin/env perl
use 5.010;
-use Shiar_Sheet::Colour '1.05';
+use Shiar_Sheet::Colour 1.05;
say 'use strict;';
say '+{';
my @names;
-for my $path (glob 'data/xcolors/themes/*') {
- open my $theme, '<', $path;
+for my $path (@ARGV) {
+ open my $theme, '<', $path or do {
+ warn "could not open $path: $!\n";
+ next;
+ };
(my $name = $path) =~ s{.*/}{}; # basename
my (%pal, @pal);