sub run_script {
my ($self, $args) = @_;
my @args = $args ? @$args : @ARGV;
- (my $cmd = shift @args) =~ s/-/_/g;
+ (my $cmd = shift @args || 'help') =~ s/-/_/g;
if (my $meth = $self->can("script_command_${cmd}")) {
$self->$meth(\@args);
} else {
}
}
+sub script_command_help {
+ print "Try `perldoc fatpack` for how to use me\n";
+}
+
sub script_command_trace {
my ($self, $args) = @_;