use Text::Wrap;
use POSIX qw/strftime/;
use MIME::Entity;
+use Pod::Usage;
# Some sane defaults.
my $host = "localhost";
my %display;
my @email;
my $email_only_on_conflict = 0;
+my $help = undef;
my $VERSION = '0.5';
'schedule-conflicts!' => \$display{'Schedule Conflicts'},
'next-recording!' => \$display{'Time till next recording'},
-);
+ 'help|?' => \$help,
+) || pod2usage("\nUse --help for help.\n");
+
+pod2usage(verbose => 1)
+ if defined $help;
die "Sorry, port isn't a number.\n"
if $port !~ /^\d+$/;
The intention is to warn you if there is a program being recorded or
about to be recorded.
-=head1 COMMAND LINE OPTIONS
+=head1 OPTIONS
=over
Only send an email out (if --email is present) if there is a schedule conflict.
+=item B<-?, --help>
+
+Display help.
+
=item B<-h HOST, --host=HOST>
The host to check, defaults to localhost.