#!/usr/bin/perl # Use this line if you want to enable the NYTProf Perl profile: #!/usr/bin/perl -d:NYTProf package MT::CLITest; use strict; use Data::Dumper; $Data::Dumper::Deparse = 1; $Data::Dumper::Terse = 1; $Data::Dumper::Maxdepth = 4; $Data::Dumper::Sortkeys = 1; $Data::Dumper::Indent = 1; use FindBin; use lib ("$FindBin::Bin/../lib", "$FindBin::Bin/../extlib"); use base qw( MT::Tool ); use Time::HiRes qw( tv_interval gettimeofday ); my ($blog, $blog_name, $template_name, $template_obj, $category_name, $entry_title, $author_name, $archive_type, $debug_mode, $profile_flag, $stdout_flag, ); sub options { return ( 'blog=s' => \$blog_name, 'template=s' => \$template_name, 'category=s' => \$category_name, 'entry=s' => \$entry_title, 'author=s' => \$author_name, 'archive=s' => \$archive_type, 'profile!' => \$profile_flag, 'debug=i' => \$debug_mode, 'stdout' => \$stdout_flag, ); } sub help { return q{ --blog Specify a blog context by blog ID or name. --template Specify a template to process by template ID or name. --category