sub opt_spec {
[ 'name=s' => 'the name of the VM to create' ],
+ [ 'config=s' => 'the name of the config file to use, default ./oyster.conf' ],
}
sub execute {
my $name = $opt->name
or die "No name provided!";
- my @config_files = ( './oyster.conf' ); # TODO make configurable
+ my @config_files = ($opt->name or './oyster.conf');
my $cfg = Config::Any->load_files({ files => \@config_files, use_ext => 0 });
($cfg) = values %{ $cfg->[0] }; # FIX with ::JFDI or similar