App-Alice
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/App/Alice/Config.pm view on Meta::CPAN
sub BUILD {
my $self = shift;
$self->load;
mkdir $self->path unless -d $self->path;
}
sub load {
my $self = shift;
my $config = {};
if (-e $self->fullpath) {
$config = require $self->fullpath;
}
else {
say STDERR "No config found, writing a few config to ".$self->fullpath;
$self->write;
}
my ($port, $debug, $address) = @_;
GetOptions("port=i" => \$port, "debug" => \$debug, "address=s" => \$address);
$self->commandline->{port} = $port if $port and $port =~ /\d+/;
$self->commandline->{debug} = 1 if $debug;
$self->commandline->{address} = $address if $address;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.021 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )