From 780883e96622ee6e14890ea844bc187bc7c70fca Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 14 Sep 2010 21:20:10 +0000 Subject: [PATCH] * add tex-only optino --- make_invoice | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/make_invoice b/make_invoice index c0d79ba..7494e2a 100755 --- a/make_invoice +++ b/make_invoice @@ -105,6 +105,7 @@ my %options = (log => undef, help => 0, man => 0, log_only => 0, + tex_only => 0, ); GetOptions(\%options, @@ -113,6 +114,7 @@ GetOptions(\%options, 'time_interval|min-time-interval|T=s', 'hourly_fee|hourly-fee|f=s', 'log_only|log-only', + 'tex_only|tex-only', 'debug|d+','help|h|?','man|m'); pod2usage() if $options{help}; @@ -263,6 +265,12 @@ if ($options{log_only}) { exit 0; } +if ($options{tex_only}) { + print $tex_invoice; + exit 0; +} + + my $invoice_date = strftime('%Y_%m_%d',localtime($last_date)); my $invoice_dir = "invoice_$invoice_date"; -- 2.39.2